Skip to content

Commit cc765cc

Browse files
committed
[Fix] avoid overridden hash
Fixes #3239
1 parent 99646ee commit cc765cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nvm.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3559,7 +3559,7 @@ nvm() {
35593559
fi
35603560
else
35613561
export PATH="${NEWPATH}"
3562-
hash -r
3562+
command hash -r
35633563
if [ "${NVM_SILENT:-0}" -ne 1 ]; then
35643564
nvm_echo "${NVM_DIR}/*/bin removed from \${PATH}"
35653565
fi
@@ -3691,7 +3691,7 @@ nvm() {
36913691
export MANPATH
36923692
fi
36933693
export PATH
3694-
hash -r
3694+
command hash -r
36953695
export NVM_BIN="${NVM_VERSION_DIR}/bin"
36963696
export NVM_INC="${NVM_VERSION_DIR}/include/node"
36973697
if [ "${NVM_SYMLINK_CURRENT-}" = true ]; then

0 commit comments

Comments
 (0)