Skip to content

Commit d382e7f

Browse files
mst-mktCopilot
andcommitted
fix(cli): quote display path in shell restart hint for paths with spaces
Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent adc3502 commit d382e7f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/cli/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,11 @@ NPMRC_EOF
659659
display_config="$SHELL_CONFIG_UPDATED"
660660
fi
661661
echo ""
662-
echo " Note: Run \`source $display_config\` or restart your terminal."
662+
if [ "${display_config#"~"}" != "$display_config" ]; then
663+
echo " Note: Run \`source $display_config\` or restart your terminal."
664+
else
665+
echo " Note: Run \`source \"$display_config\"\` or restart your terminal."
666+
fi
663667
fi
664668

665669
# Show warning if PATH could not be automatically configured

0 commit comments

Comments
 (0)