: << 'CMDBLOCK' @echo off REM Polyglot wrapper: runs .sh scripts cross-platform REM Usage: run-hook.cmd [args...] REM The script should be in the same directory as this wrapper if "%~1"=="" ( echo run-hook.cmd: missing script name >&2 exit /b 1 ) "C:\Program Files\Git\bin\bash.exe" -l "%~dp0%~1" %2 %3 %4 %5 %6 %7 %8 %9 exit /b CMDBLOCK # Unix shell runs from here SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SCRIPT_NAME="$1" shift "${SCRIPT_DIR}/${SCRIPT_NAME}" "$@"