Skip to content

Commit e0020ab

Browse files
ChanMeng666claude
andcommitted
fix: installer hangs on Git Bash due to backslash in heredoc
Replace `home_dir.replace('\', '/')` with `home_dir.replace(os.sep, '/')` in the embedded Python script. The literal `\` inside a bash heredoc gets reduced to a single `\` by Git Bash on Windows, causing a Python SyntaxError (unterminated string literal) that silently hangs the installer at step 6. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c01c2ea commit e0020ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install-complete.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ try:
505505
506506
if is_windows:
507507
# Windows: Use Python hook_runner.py for reliable execution
508-
hooks_dir = home_dir.replace('\\', '/') + '/.claude/hooks'
508+
hooks_dir = home_dir.replace(os.sep, '/') + '/.claude/hooks'
509509
hook_runner = f'{hooks_dir}/hook_runner.py'
510510
511511
for hook_name, hook_type in all_hook_types.items():

0 commit comments

Comments
 (0)