mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 22:51:51 +00:00
Ensure script only runs in users HOME directory
This commit is contained in:
parent
ecba036cbf
commit
42f6693db6
3
nvm.sh
3
nvm.sh
@ -97,6 +97,9 @@ nvm_print_npm_version() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Ensure this only runs in the users $HOME directory
|
||||||
|
cd "$HOME"
|
||||||
|
|
||||||
# Make zsh glob matching behave same as bash
|
# Make zsh glob matching behave same as bash
|
||||||
# This fixes the "zsh: no matches found" errors
|
# This fixes the "zsh: no matches found" errors
|
||||||
if [ -z "${NVM_CD_FLAGS-}" ]; then
|
if [ -z "${NVM_CD_FLAGS-}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user