瀏覽代碼

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
Jesse Vincent 9 月之前
父節點
當前提交
8462c20cce
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 1 1
      .claude-plugin/plugin.json
  2. 5 1
      hooks/run-hook.cmd

+ 1 - 1
.claude-plugin/plugin.json

@@ -1,7 +1,7 @@
 {
   "name": "superpowers",
   "description": "Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques",
-  "version": "3.6.0",
+  "version": "3.6.1",
   "author": {
     "name": "Jesse Vincent",
     "email": "jesse@fsck.com"

+ 5 - 1
hooks/run-hook.cmd

@@ -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