Skip to content

Commit 145f8cc

Browse files
betegonclaude
andcommitted
fix(install): quote paths in generated shell commands
Paths with spaces (e.g., /Users/Jane Doe) would break the generated export PATH and fish_add_path commands. Quoting the path ensures syntactically correct shell commands. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7e387ac commit 145f8cc

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/public/install

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,19 +146,19 @@ if [[ "$no_modify_path" != "true" ]]; then
146146
echo -e "${MUTED}No config file found. Manually add to PATH:${NC}"
147147
case $current_shell in
148148
fish)
149-
echo " fish_add_path $install_dir"
149+
echo " fish_add_path \"$install_dir\""
150150
;;
151151
*)
152-
echo " export PATH=$install_dir:\$PATH"
152+
echo " export PATH=\"$install_dir\":\$PATH"
153153
;;
154154
esac
155155
else
156156
case $current_shell in
157157
fish)
158-
add_to_path "$config_file" "fish_add_path $install_dir"
158+
add_to_path "$config_file" "fish_add_path \"$install_dir\""
159159
;;
160160
*)
161-
add_to_path "$config_file" "export PATH=$install_dir:\$PATH"
161+
add_to_path "$config_file" "export PATH=\"$install_dir\":\$PATH"
162162
;;
163163
esac
164164
fi

0 commit comments

Comments
 (0)