summaryrefslogtreecommitdiff
path: root/docs/windows
diff options
context:
space:
mode:
Diffstat (limited to 'docs/windows')
-rw-r--r--docs/windows/polyglot-hooks.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/windows/polyglot-hooks.md b/docs/windows/polyglot-hooks.md
index 6878f66..5e26ca4 100644
--- a/docs/windows/polyglot-hooks.md
+++ b/docs/windows/polyglot-hooks.md
@@ -148,7 +148,7 @@ exit /b
CMDBLOCK
# Unix shell runs from here
-SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
+SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
SCRIPT_NAME="$1"
shift
"${SCRIPT_DIR}/${SCRIPT_NAME}" "$@"