mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-17 17:41:50 +00:00
Because ubuntu seems to have NVM_DIR set to /usr/sbin
This commit is contained in:
parent
68574cc7e8
commit
8eb479eae2
@ -7,7 +7,7 @@ nvm_has() {
|
|||||||
return $?
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -z "$NVM_DIR" ]; then
|
if [ -z "$NVM_DIR" ] || [[ -n $(uname -a | grep Ubuntu) ]]; then
|
||||||
NVM_DIR="$HOME/.nvm"
|
NVM_DIR="$HOME/.nvm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user