mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-17 09:31:51 +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 $?
|
||||
}
|
||||
|
||||
if [ -z "$NVM_DIR" ]; then
|
||||
if [ -z "$NVM_DIR" ] || [[ -n $(uname -a | grep Ubuntu) ]]; then
|
||||
NVM_DIR="$HOME/.nvm"
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user