Skip to content

Commit

Permalink
install.sh: use printf to print post-install instructions
Browse files Browse the repository at this point in the history
In Fish shell, parentheses are for command substitution, so the
parenthesised subshell used for `echo` grouping does not work there.
Instead let's use `printf` to print the post-install instructions; it's
more portable.

Fixes #880.
  • Loading branch information
ZhongRuoyu committed Sep 25, 2024
1 parent 3338c8a commit ee976ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ EOS
else
cat <<EOS
- Run these two commands in your terminal to add Homebrew to your ${tty_bold}PATH${tty_reset}:
(echo; echo 'eval "\$(${HOMEBREW_PREFIX}/bin/brew shellenv)"') >> ${shell_rcfile}
printf '%s\n' '' 'eval "\$(${HOMEBREW_PREFIX}/bin/brew shellenv)"' >> ${shell_rcfile}
eval "\$(${HOMEBREW_PREFIX}/bin/brew shellenv)"
EOS
fi
Expand Down

0 comments on commit ee976ef

Please sign in to comment.