mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-11-01 18:55:52 +08:00
use comparison opts
This commit is contained in:
@@ -6,11 +6,11 @@ fatalExit (){
|
|||||||
echo "$@" && exit 1;
|
echo "$@" && exit 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ ! "$NVM_SOURCE" ]; then
|
if [ -z "$NVM_SOURCE" ]; then
|
||||||
NVM_SOURCE="https://raw.github.com/creationix/nvm/master/nvm.sh"
|
NVM_SOURCE="https://raw.github.com/creationix/nvm/master/nvm.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! "$NVM_DIR" ]; then
|
if [ -z "$NVM_DIR" ]; then
|
||||||
NVM_DIR="$HOME/.nvm"
|
NVM_DIR="$HOME/.nvm"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user