Make 'Running "nvm deactivate" should unset the nvm environment variables.' work again

/bin/sh doesn't like `while [[ ... ]]`. It much rather prefers `while [ .. ]`

Also minor spacing changes
This commit is contained in:
LoveIsGrief 2014-11-16 17:04:07 +01:00
parent 78069717f7
commit c485417bd8

4
nvm.sh
View File

@ -803,10 +803,10 @@ nvm() {
fi fi
else else
# Handle options # Handle options
while [[ $# > 0 ]]; do while [ $# > 0 ]; do
key="$1" key="$1"
shift shift
case $key in case $key in
--print-paths) --print-paths)
PRINT_PATHS=true PRINT_PATHS=true
;; ;;