mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-12-13 16:44:17 +00:00
Ensure script only runs in users HOME directory
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user