mirror of
https://github.com/obra/superpowers.git
synced 2026-04-17 03:12:41 +00:00
Release v3.6.1: Fix Windows arg forwarding in polyglot wrapper
- Add validation for missing script name - Forward up to 8 additional arguments to bash on Windows - Fixes CodeRabbit review feedback from #134
This commit is contained in:
@@ -4,7 +4,11 @@ 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"
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user