mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-30 00:45:49 +08:00
Remove trailing space
This commit is contained in:
@@ -11,7 +11,7 @@ HOME="__home__"
|
||||
|
||||
|
||||
# NVM_DIR is set
|
||||
NVM_DIR="some_dir"
|
||||
NVM_DIR="some_dir"
|
||||
install_dir=$(nvm_install_dir)
|
||||
[ "_$install_dir" = "_$NVM_DIR" ] || die "nvm_install_dir should use \$NVM_DIR if it exists. Current output: $install_dir"
|
||||
|
||||
|
||||
@@ -9,10 +9,10 @@ die () { echo "$@" ; cleanup ; exit 1; }
|
||||
NVM_ENV=testing \. ../../install.sh
|
||||
|
||||
# nvm_source with no parameter returns the git endpoint
|
||||
echo $(nvm_source) | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"
|
||||
echo $(nvm_source) | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"
|
||||
|
||||
# nvm_source with git parameter returns the location of the nvm repo
|
||||
echo $(nvm_source "git") | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"
|
||||
echo $(nvm_source "git") | grep "nvm.git$" > /dev/null || die "nvm_source without arguments should return the location of the git repo"
|
||||
|
||||
# nvm_source with script parameter returns the location of nvm.sh
|
||||
echo $(nvm_source "script") | grep "nvm.sh$" > /dev/null || die "nvm_source \"script\" should return the location of nvm.sh"
|
||||
|
||||
Reference in New Issue
Block a user