mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-10-30 00:45:49 +08:00
[Tests] Replace all dots with backslash dots
This commit is contained in:
committed by
Jordan Harband
parent
2a2b8bdeb3
commit
cadbbced20
@@ -12,7 +12,7 @@ cleanup () {
|
||||
}
|
||||
die () { echo $@ ; cleanup ; exit 1; }
|
||||
|
||||
NVM_ENV=testing . ../../install.sh
|
||||
NVM_ENV=testing \. ../../install.sh
|
||||
|
||||
setup () {
|
||||
ORIGINAL_PATH="$PATH"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
setup () {
|
||||
HOME="."
|
||||
NVM_ENV=testing . ../../install.sh
|
||||
NVM_ENV=testing \. ../../install.sh
|
||||
touch ".bashrc"
|
||||
touch ".bash_profile"
|
||||
touch ".zshrc"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
die () { echo $@ ; exit 1; }
|
||||
|
||||
NVM_ENV=testing . ../../install.sh
|
||||
NVM_ENV=testing \. ../../install.sh
|
||||
|
||||
#nvm_do_install is available
|
||||
type nvm_do_install > /dev/null 2>&1 || die 'nvm_do_install is not available'
|
||||
|
||||
@@ -6,7 +6,7 @@ cleanup () {
|
||||
}
|
||||
die () { echo $@ ; cleanup ; exit 1; }
|
||||
|
||||
NVM_ENV=testing . ../../install.sh
|
||||
NVM_ENV=testing \. ../../install.sh
|
||||
HOME="__home__"
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ safe_type() {
|
||||
! safe_type nvm_reset || die 'nvm_reset is still available'
|
||||
! safe_type nvm_detect_profile || die 'nvm_detect_profile is still available'
|
||||
|
||||
NVM_ENV=testing . ../../install.sh
|
||||
NVM_ENV=testing \. ../../install.sh
|
||||
|
||||
# Check nvm_reset exists
|
||||
safe_type nvm_reset || die 'nvm_reset is not available'
|
||||
|
||||
@@ -6,7 +6,7 @@ cleanup () {
|
||||
}
|
||||
die () { echo $@ ; cleanup ; exit 1; }
|
||||
|
||||
NVM_ENV=testing . ../../install.sh
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user