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
8eb479eae2
commit
839c497d29
2
nvm.sh
2
nvm.sh
@ -39,7 +39,7 @@ if nvm_has "unsetopt"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Auto detect the NVM_DIR when not set
|
# Auto detect the NVM_DIR when not set
|
||||||
if [ -z "$NVM_DIR" ]; then
|
if [ -z "$NVM_DIR" ] || [[ -n $(uname -a | grep Ubuntu) ]]; then
|
||||||
if [ -n "$BASH_SOURCE" ]; then
|
if [ -n "$BASH_SOURCE" ]; then
|
||||||
NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}"
|
NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user