diff options
| author | Drew Ritter <drew@primeradiant.com> | 2026-11-26 00:46:47 -0800 |
|---|---|---|
| committer | Drew Ritter <drew@primeradiant.com> | 2026-11-26 00:46:47 -0800 |
| commit | 3d1bd8f963d1ef8ea1a01dc9b17729507c1ec6c4 (patch) | |
| tree | 90d677c590c236b58c4c1b7ca5a525c5b5687f2f /hooks/session-start | |
| parent | da0d65d55330d591b03b6b7d818dc7dd7746e4e1 (diff) | |
| parent | f27e901302c8294370ac77bfba148c7d72bc8b78 (diff) | |
Merge branch 'fix/wave1-run-hook-heredoc' into fix/wave1-public-docs-and-erratafix/wave1-public-docs-and-errata
Diffstat (limited to 'hooks/session-start')
| -rwxr-xr-x | hooks/session-start | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hooks/session-start b/hooks/session-start index 2ad81f0..fc71eb8 100755 --- a/hooks/session-start +++ b/hooks/session-start @@ -29,8 +29,10 @@ else cr=$(printf '\r' 2>/dev/null || true) fi -# Read using-superpowers content via POSIX read (no cat, no $(< file) subshell), -# dropping trailing blank lines as $(< file) did. +# Read using-superpowers content with the read builtin (no cat, for the same +# PATH-independence reason, and no $(< file) subshell). read returns 1 at end +# of file, hence || [ -n "$line" ]; the loop drops trailing newlines as +# $(< file) did. skill_md="${PLUGIN_ROOT}/skills/using-superpowers/SKILL.md" using_superpowers_content="Error reading using-superpowers skill" if [ -r "$skill_md" ]; then |
