run-hook.cmd 410 B

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