Skip to content

Commit 7723bfa

Browse files
[Fix] bash_completion source prompt, remove &&
1 parent 3d9f814 commit 7723bfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ nvm_do_install() {
306306
command printf "${SOURCE_STR}"
307307
else
308308
case "${NVM_PROFILE-}" in
309-
*".bashrc" | *".bash_profile" | *".zshrc")
309+
*"/.bashrc" | *"/.bash_profile" | *"/.zshrc")
310310
BASH_OR_ZSH=true
311311
;;
312312
esac
@@ -342,7 +342,7 @@ nvm_do_install() {
342342
echo "=> Close and reopen your terminal to start using nvm or run the following to use it now:"
343343
command printf "${SOURCE_STR}"
344344
if ${BASH_OR_ZSH} ; then
345-
command printf " && ${COMPLETION_STR}"
345+
command printf "${COMPLETION_STR}"
346346
fi
347347
}
348348

0 commit comments

Comments
 (0)