Skip to content

Commit 0158390

Browse files
lroolleclaude
andcommitted
fix: installer wrote "bash \~/.claude/statusline.sh" with backslash
The parameter expansion ${DEST/#$HOME/\~} escaped the tilde, producing a literal backslash in settings.json. Tilde stored in a variable avoids both backslash-escaping and tilde-expansion. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9363a23 commit 0158390

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ curl -fsSL "${RAW}/statusline.sh" -o "$DEST"
2020
chmod +x "$DEST"
2121
info "Installed to $DEST"
2222

23-
STATUSLINE_CMD="bash ${DEST/#$HOME/\~}"
23+
_tilde='~'
24+
STATUSLINE_CMD="bash ${DEST/#$HOME/$_tilde}"
2425

2526
if [ ! -f "$SETTINGS" ]; then
2627
info "Creating $SETTINGS"

0 commit comments

Comments
 (0)