Skip to content

An agentic skills framework & software development methodology that works.

Release v3.6.2: Fix Linux compatibility in polyglot hook wrapper

Jesse Vincent154d66437356
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json
index 423b2f8ea..d4291379f 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 5d411e99e..da89c3177 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": "[email protected]"
diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md
index 32eae2788..b2565eb19 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 33d2e2a99..8d8458fcb 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}" "$@"