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