From eff4dd42c1031656257e11cfb936839dfcc38cce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfonso=20G=C3=B3mez-Arzola?= Date: Sat, 8 Jan 2022 15:23:21 -0500 Subject: [PATCH] GH-706 Update location change message (#707) * GH-706 Update location change message * Remove (seemingly) unnecessary shellcheck exception * Add missing trailing newline --- bin/n | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/n b/bin/n index 0f5c149..ebaa5d1 100755 --- a/bin/n +++ b/bin/n @@ -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 }