Commit efe040a
fix: quote CLAUDE_PLUGIN_ROOT in hook commands to support paths with spaces (awslabs#212)
The aws-serverless and deploy-on-aws hooks passed ${CLAUDE_PLUGIN_ROOT}
directly to /bin/sh -c without quoting or a bash prefix. When
CLAUDE_CONFIG_DIR contains a space (e.g. /Users/me/Work/Company Name/),
the shell word-splits the path and the hook fails on every Edit/Write
with:
/bin/sh: /Users/me/Work/Company: is a directory
Wrap the interpolated path in escaped double quotes and prefix with
bash, matching the pattern used by superpowers in
anthropics/claude-plugins-official. Applied the same pattern to the
databases-on-aws scripts README example so users don't copy the
broken form.
Closes awslabs#146
Co-authored-by: Scott Schreckengaust <scottschreckengaust@users.noreply.github.com>1 parent 56429e4 commit efe040a
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- plugins
- aws-serverless/hooks
- databases-on-aws/scripts
- deploy-on-aws/hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
0 commit comments