mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-14 20:36:37 +00:00
Allow running readme update script outside script directory
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
cd "${SCRIPT_DIR}/.."
|
||||
|
||||
before=$(head -n $(
|
||||
grep --context="0" --line-number --max-count="1" "### Available Methods" "README.md" |
|
||||
perl -pe 's/^(\d+):.*/\1/') "README.md")
|
||||
|
||||
Reference in New Issue
Block a user