0
0
mirror of https://github.com/tj/n.git synced 2024-11-21 18:48:57 +01:00

GH-706 Update location change message (#707)

* GH-706 Update location change message

* Remove (seemingly) unnecessary shellcheck exception

* Add missing trailing newline
This commit is contained in:
Alfonso Gómez-Arzola 2022-01-08 15:23:21 -05:00 committed by GitHub
parent a19c6c2c82
commit eff4dd42c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
bin/n
View File

@ -740,8 +740,7 @@ activate() {
printf '\nNote: the node command changed location and the old location may be remembered in your current shell.\n'
log old "${original_node}"
log new "${active_node}"
# shellcheck disable=SC2016
printf 'To reset the command location hash either start a new shell, or execute PATH="$PATH"\n'
printf 'If "node --version" shows the old version then start a new shell, or reset the location hash with:\nhash -r (for bash, zsh, ash, dash, and ksh)\nrehash (for csh and tcsh)\n'
fi
fi
}