Allow running readme update script outside script directory

This commit is contained in:
Zach Borboa
2018-06-21 23:56:14 -07:00
parent ee89e5fd67
commit 668acf1e08
+3
View File
@@ -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")