diff options
| author | Jesse Vincent <jesse@fsck.com> | 2025-12-03 10:14:19 -0800 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2025-12-03 10:14:19 -0800 |
| commit | 154d664373569a83289684d7b01742a82cca4eaf (patch) | |
| tree | 69ba9dc482952a9f106268230cee39613921138d | |
| parent | 8462c20cce0ca37ff747d80fde4697fd45a98189 (diff) | |
Release v3.6.2: Fix Linux compatibility in polyglot hook wrapperv3.6.2
Fixed POSIX compatibility issue in hooks/run-hook.cmd that caused
"Bad substitution" errors on Ubuntu/Debian systems where /bin/sh is dash.
Changes:
- Replaced bash-specific ${BASH_SOURCE[0]:-$0} with POSIX-compliant $0
- Tested with both bash and sh (POSIX mode) on macOS
- Updated version to 3.6.2 in all required files
Fixes #141
| -rw-r--r-- | .claude-plugin/marketplace.json | 2 | ||||
| -rw-r--r-- | .claude-plugin/plugin.json | 2 | ||||
| -rw-r--r-- | RELEASE-NOTES.md | 11 | ||||
| -rwxr-xr-x | hooks/run-hook.cmd | 2 |
4 files changed, 14 insertions, 3 deletions
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 423b2f8..d429137 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ { "name": "superpowers", "description": "Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques", - "version": "3.5.1", + "version": "3.6.2", "source": "./", "author": { "name": "Jesse Vincent", diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.json index 5d411e9..da89c31 100644 --- a/.claude-plugin/plugin.json +++ b/.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.1", + "version": "3.6.2", "author": { "name": "Jesse Vincent", "email": "jesse@fsck.com" diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 32eae27..b2565eb 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,5 +1,16 @@ # Superpowers Release Notes +## v3.6.2 (2025-12-03) + +### Fixed + +- **Linux Compatibility**: Fixed polyglot hook wrapper (`run-hook.cmd`) to use POSIX-compliant syntax + - Replaced bash-specific `${BASH_SOURCE[0]:-$0}` with standard `$0` on line 16 + - Resolves "Bad substitution" error on Ubuntu/Debian systems where `/bin/sh` is dash + - Fixes #141 + +--- + ## v3.5.1 (2025-11-24) ### Changed diff --git a/hooks/run-hook.cmd b/hooks/run-hook.cmd index 33d2e2a..8d8458f 100755 --- a/hooks/run-hook.cmd +++ b/hooks/run-hook.cmd @@ -13,7 +13,7 @@ exit /b CMDBLOCK # Unix shell runs from here -SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)" +SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" SCRIPT_NAME="$1" shift "${SCRIPT_DIR}/${SCRIPT_NAME}" "$@" |
