We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$HOME
1 parent dc19288 commit 0c21137Copy full SHA for 0c21137
1 file changed
packages/cli/install.sh
@@ -651,7 +651,12 @@ NPMRC_EOF
651
652
# Show restart note if PATH was added to shell config
653
if [ "$PATH_CONFIGURED" = "true" ] && [ -n "$SHELL_CONFIG_UPDATED" ]; then
654
- local display_config="~${SHELL_CONFIG_UPDATED#"$HOME"}"
+ local display_config
655
+ if [ "${SHELL_CONFIG_UPDATED#"$HOME"}" != "$SHELL_CONFIG_UPDATED" ]; then
656
+ display_config="~${SHELL_CONFIG_UPDATED#"$HOME"}"
657
+ else
658
+ display_config="$SHELL_CONFIG_UPDATED"
659
+ fi
660
echo ""
661
echo " Note: Run \`source $display_config\` or restart your terminal."
662
fi
0 commit comments