diff --git a/nvm-exec b/nvm-exec index 0d28870..55ea0c1 100755 --- a/nvm-exec +++ b/nvm-exec @@ -2,7 +2,7 @@ DIR="$(command cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -. "$DIR/nvm.sh" --no-use +\. "$DIR/nvm.sh" --no-use if [ -n "$NODE_VERSION" ]; then nvm use $NODE_VERSION > /dev/null || exit 127 diff --git "a/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" "b/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" index f5b1d0f..0c2869e 100755 --- "a/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" +++ "b/test/fast/Aliases/\"nvm alias\" should not accept aliases with slashes" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh die () { echo $@ ; exit 1; } diff --git "a/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" "b/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" index ff0a304..ac399de 100755 --- "a/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" +++ "b/test/fast/Aliases/\"nvm unalias\" should not accept aliases with slashes" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh die () { echo $@ ; exit 1; } diff --git "a/test/fast/Aliases/Running \"nvm alias \" again should change the target" "b/test/fast/Aliases/Running \"nvm alias \" again should change the target" index 8c8bb68..bd57bc6 100755 --- "a/test/fast/Aliases/Running \"nvm alias \" again should change the target" +++ "b/test/fast/Aliases/Running \"nvm alias \" again should change the target" @@ -1,7 +1,7 @@ #!/bin/sh -. ../../../nvm.sh -. ../../common.sh +\. ../../../nvm.sh +\. ../../common.sh die () { echo $@ ; exit 1; } diff --git "a/test/fast/Aliases/Running \"nvm alias \" should list but one alias." "b/test/fast/Aliases/Running \"nvm alias \" should list but one alias." index b22df2e..7ba4c38 100755 --- "a/test/fast/Aliases/Running \"nvm alias \" should list but one alias." +++ "b/test/fast/Aliases/Running \"nvm alias \" should list but one alias." @@ -1,4 +1,4 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh [ $(nvm alias test-stable-1 | wc -l) = '2' ] diff --git "a/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" "b/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" index 2c27ad1..1df6638 100755 --- "a/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" +++ "b/test/fast/Aliases/Running \"nvm alias\" lists implicit aliases when they do not exist" @@ -1,7 +1,7 @@ #!/bin/sh -. ../../../nvm.sh -. ../../common.sh +\. ../../../nvm.sh +\. ../../common.sh die () { echo $@ ; exit 1; } diff --git "a/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" "b/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" index 050baf6..e6babc6 100755 --- "a/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" +++ "b/test/fast/Aliases/Running \"nvm alias\" lists manual aliases instead of implicit aliases when present" @@ -1,7 +1,7 @@ #!/bin/sh -. ../../../nvm.sh -. ../../common.sh +\. ../../../nvm.sh +\. ../../common.sh die () { echo $@ ; cleanup ; exit 1; } cleanup () { diff --git "a/test/fast/Aliases/Running \"nvm alias\" should list all aliases." "b/test/fast/Aliases/Running \"nvm alias\" should list all aliases." index 1135388..5223e09 100755 --- "a/test/fast/Aliases/Running \"nvm alias\" should list all aliases." +++ "b/test/fast/Aliases/Running \"nvm alias\" should list all aliases." @@ -1,7 +1,7 @@ #!/bin/sh -. ../../../nvm.sh -. ../../common.sh +\. ../../../nvm.sh +\. ../../common.sh die () { echo $@ ; exit 1; } diff --git a/test/fast/Aliases/circular/nvm_resolve_alias b/test/fast/Aliases/circular/nvm_resolve_alias index e481826..af351a5 100755 --- a/test/fast/Aliases/circular/nvm_resolve_alias +++ b/test/fast/Aliases/circular/nvm_resolve_alias @@ -1,9 +1,9 @@ #!/bin/sh -. ../../../common.sh +\. ../../../common.sh die () { echo $@ ; exit 1; } -. ../../../../nvm.sh +\. ../../../../nvm.sh ALIAS="$(nvm_resolve_alias loopback | strip_colors)" [ "_$ALIAS" = "_∞" ] || die "nvm_resolve_alias loopback was not ∞; got $ALIAS" diff --git a/test/fast/Aliases/circular/nvm_resolve_local_alias b/test/fast/Aliases/circular/nvm_resolve_local_alias index dace4d0..631acda 100755 --- a/test/fast/Aliases/circular/nvm_resolve_local_alias +++ b/test/fast/Aliases/circular/nvm_resolve_local_alias @@ -1,9 +1,9 @@ #!/bin/sh -. ../../../common.sh +\. ../../../common.sh die () { echo $@ ; exit 1; } -. ../../../../nvm.sh +\. ../../../../nvm.sh ALIAS="$(nvm_resolve_local_alias loopback | strip_colors)" [ "_$ALIAS" = "_∞" ] || die "nvm_resolve_local_alias loopback was not ∞; got $ALIAS" diff --git "a/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" "b/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" index eefcf98..0a1d909 100755 --- "a/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" +++ "b/test/fast/Aliases/lts/\"nvm alias\" should ensure LTS alias dir exists" @@ -2,8 +2,8 @@ set -ex -. ../../../../nvm.sh -. ../../../common.sh +\. ../../../../nvm.sh +\. ../../../common.sh LTS_ALIAS_PATH="$(nvm_alias_path)/lts" diff --git a/test/fast/Aliases/lts/setup_dir b/test/fast/Aliases/lts/setup_dir index 6a99acf..4aeb067 100755 --- a/test/fast/Aliases/lts/setup_dir +++ b/test/fast/Aliases/lts/setup_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../../nvm.sh +\. ../../../../nvm.sh LTS_ALIAS_PATH="$(nvm_alias_path)/lts" diff --git a/test/fast/Aliases/lts/teardown_dir b/test/fast/Aliases/lts/teardown_dir index a5200ef..18863f4 100755 --- a/test/fast/Aliases/lts/teardown_dir +++ b/test/fast/Aliases/lts/teardown_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../../nvm.sh +\. ../../../../nvm.sh LTS_ALIAS_PATH="$(nvm_alias_path)/lts" diff --git a/test/fast/Aliases/nvm_ensure_default_set b/test/fast/Aliases/nvm_ensure_default_set index 602ceba..34f08a3 100755 --- a/test/fast/Aliases/nvm_ensure_default_set +++ b/test/fast/Aliases/nvm_ensure_default_set @@ -1,10 +1,10 @@ #!/bin/sh -. ../../common.sh +\. ../../common.sh die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm alias default 0.1 >/dev/null || die "'nvm alias default 0.1' failed" diff --git a/test/fast/Aliases/nvm_resolve_alias b/test/fast/Aliases/nvm_resolve_alias index f367eb3..837f0a2 100755 --- a/test/fast/Aliases/nvm_resolve_alias +++ b/test/fast/Aliases/nvm_resolve_alias @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh EXIT_CODE=$(nvm_resolve_alias ; echo $?) [ $EXIT_CODE = "1" ] || die "nvm_resolve_alias without an argument did not return 1; got $EXIT_CODE" diff --git a/test/fast/Aliases/nvm_resolve_local_alias b/test/fast/Aliases/nvm_resolve_local_alias index 384fece..f0d40bd 100755 --- a/test/fast/Aliases/nvm_resolve_local_alias +++ b/test/fast/Aliases/nvm_resolve_local_alias @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh EXIT_CODE=$(nvm_resolve_local_alias ; echo $?) [ "_$EXIT_CODE" = "_1" ] || die "nvm_resolve_local_alias without an argument did not return 1; got $EXIT_CODE" diff --git "a/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." "b/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." index 3ead43e..05e8f25 100755 --- "a/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." +++ "b/test/fast/Listing paths/Running \"nvm which 0.0.2\" should display only version 0.0.2." @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p "${NVM_DIR}/v0.0.2" mkdir -p "${NVM_DIR}/v0.0.20" diff --git "a/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" "b/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" index 0c1e30b..c0218a0 100755 --- "a/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" +++ "b/test/fast/Listing paths/Running \"nvm which foo\" should return a nonzero exit code when not found" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm which nonexistent_version [ "_$?" = "_1" ] diff --git "a/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." "b/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." index 92c59bc..fc73888 100755 --- "a/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." +++ "b/test/fast/Listing versions/Running \"nvm ls 0.0.2\" should display only version 0.0.2." @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/v0.0.2" mkdir "${NVM_DIR}/v0.0.20" diff --git "a/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." "b/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." index 8a6630d..0d06a24 100755 --- "a/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." +++ "b/test/fast/Listing versions/Running \"nvm ls 0.2\" should display only 0.2.x versions." @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/v0.1.3" mkdir "${NVM_DIR}/v0.2.3" diff --git "a/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" "b/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" index 19e0f96..74a97b4 100755 --- "a/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" +++ "b/test/fast/Listing versions/Running \"nvm ls foo\" should return a nonzero exit code when not found" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm ls nonexistent_version [ "$?" = "3" ] diff --git "a/test/fast/Listing versions/Running \"nvm ls io\" should return NA" "b/test/fast/Listing versions/Running \"nvm ls io\" should return NA" index 2c61b66..79dccfe 100755 --- "a/test/fast/Listing versions/Running \"nvm ls io\" should return NA" +++ "b/test/fast/Listing versions/Running \"nvm ls io\" should return NA" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm ls io [ "$?" = "3" ] diff --git "a/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" "b/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" index b4ad7a2..af79302 100755 --- "a/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" +++ "b/test/fast/Listing versions/Running \"nvm ls node_\" should return a nonzero exit code when not found" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm ls node_ [ "$?" = "3" ] diff --git "a/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" "b/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" index 195f197..c634799 100755 --- "a/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" +++ "b/test/fast/Listing versions/Running \"nvm ls stable\" and \"nvm ls unstable\" should return the appropriate implicit alias" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh die () { echo $@ ; exit 1; } diff --git "a/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" "b/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" index 16b4308..a570777 100755 --- "a/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" +++ "b/test/fast/Listing versions/Running \"nvm ls system\" should include \"system\" when appropriate" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p "${NVM_DIR}/v0.0.1" mkdir -p "${NVM_DIR}/v0.0.3" diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." "b/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." index d8ee316..d9fdce0 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." +++ "b/test/fast/Listing versions/Running \"nvm ls\" should display all installed versions." @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/v0.0.1" mkdir "${NVM_DIR}/v0.0.3" diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" "b/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" index a1d1f5b..2946ad8 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" +++ "b/test/fast/Listing versions/Running \"nvm ls\" should filter out \".nvm\"" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/v0.1.3" mkdir "${NVM_DIR}/v0.2.3" diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" "b/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" index 1e8183e..eae526a 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" +++ "b/test/fast/Listing versions/Running \"nvm ls\" should filter out \"versions\"" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/v0.1.3" mkdir "${NVM_DIR}/v0.2.3" diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" "b/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" index a5a5514..bfd4c55 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" +++ "b/test/fast/Listing versions/Running \"nvm ls\" should include \"system\" when appropriate" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p "${NVM_DIR}/v0.0.1" mkdir -p "${NVM_DIR}/v0.0.3" diff --git "a/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" "b/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" index 62492d2..76225e3 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" +++ "b/test/fast/Listing versions/Running \"nvm ls\" should list versions in the \"versions\" directory" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p "${NVM_DIR}/versions/node/v0.12.1" mkdir "${NVM_DIR}/v0.1.3" diff --git "a/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" "b/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" index 24b3db4..2884531 100755 --- "a/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" +++ "b/test/fast/Listing versions/Running \"nvm ls\" with node-like versioning vx.x.x should only list a matched version" @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/v0.1.2" diff --git "a/test/fast/Running \"nvm alias\" should create a file in the alias directory." "b/test/fast/Running \"nvm alias\" should create a file in the alias directory." index 8a466bb..1ff49f5 100755 --- "a/test/fast/Running \"nvm alias\" should create a file in the alias directory." +++ "b/test/fast/Running \"nvm alias\" should create a file in the alias directory." @@ -2,7 +2,7 @@ set -ex -. ../../nvm.sh +\. ../../nvm.sh nvm alias test v0.1.2 diff --git "a/test/fast/Running \"nvm current\" should display current nvm environment." "b/test/fast/Running \"nvm current\" should display current nvm environment." index db87520..3c114a6 100755 --- "a/test/fast/Running \"nvm current\" should display current nvm environment." +++ "b/test/fast/Running \"nvm current\" should display current nvm environment." @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh nvm deactivate 2>&1 diff --git "a/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." "b/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." index ba51074..e5fbb6f 100755 --- "a/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." +++ "b/test/fast/Running \"nvm deactivate\" should unset the nvm environment variables." @@ -8,7 +8,7 @@ die () { echo $@ ; exit 1; } [ `expr $PATH : ".*v0.2.3/.*/bin"` = 0 ] || echo "WARNING: Unexpectedly found v0.2.3 already active" >&2 -. ../../nvm.sh +\. ../../nvm.sh nvm use --delete-prefix v0.2.3 || die "Failed to activate v0.2.3" [ `expr "$PATH" : ".*v0.2.3/.*/bin"` != 0 ] || die "PATH not set up properly" diff --git "a/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" "b/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" index f7b016d..ec02cec 100755 --- "a/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" +++ "b/test/fast/Running \"nvm install\" with \"--reinstall-packages-from\" requires a valid version" @@ -7,7 +7,7 @@ cleanup () { rm -rf "${NVM_DIR}/v0.10.4" } -. ../../nvm.sh +\. ../../nvm.sh mkdir "${NVM_DIR}/v0.10.4" diff --git "a/test/fast/Running \"nvm install\" with an invalid version fails nicely" "b/test/fast/Running \"nvm install\" with an invalid version fails nicely" index 3d78340..56b292c 100755 --- "a/test/fast/Running \"nvm install\" with an invalid version fails nicely" +++ "b/test/fast/Running \"nvm install\" with an invalid version fails nicely" @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh set +ex # needed for stderr OUTPUT="$(nvm install invalid.invalid 2>&1)" diff --git "a/test/fast/Running \"nvm unalias\" should remove the alias file." "b/test/fast/Running \"nvm unalias\" should remove the alias file." index d49ebf2..2781f57 100755 --- "a/test/fast/Running \"nvm unalias\" should remove the alias file." +++ "b/test/fast/Running \"nvm unalias\" should remove the alias file." @@ -6,7 +6,7 @@ ALIAS_PATH="../../alias" echo v0.1.2 > "${ALIAS_PATH}/test" -. ../../nvm.sh +\. ../../nvm.sh nvm unalias test diff --git "a/test/fast/Running \"nvm unload\" should unset all function and variables." "b/test/fast/Running \"nvm unload\" should unset all function and variables." index 3ac3505..783d23b 100755 --- "a/test/fast/Running \"nvm unload\" should unset all function and variables." +++ "b/test/fast/Running \"nvm unload\" should unset all function and variables." @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh type nvm > /dev/null 2>&1 || die "nvm not loaded" diff --git "a/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" "b/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" index 023415c..a5f2029 100755 --- "a/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" +++ "b/test/fast/Running \"nvm use foo\" where \"foo\" is circular aborts" @@ -8,7 +8,7 @@ cleanup() { rm -rf "$(nvm_alias_path)/foo" } -. ../../nvm.sh +\. ../../nvm.sh nvm_make_alias foo foo diff --git "a/test/fast/Running \"nvm use iojs\" uses latest io.js version" "b/test/fast/Running \"nvm use iojs\" uses latest io.js version" index 6c54203..23355ca 100755 --- "a/test/fast/Running \"nvm use iojs\" uses latest io.js version" +++ "b/test/fast/Running \"nvm use iojs\" uses latest io.js version" @@ -2,7 +2,7 @@ set -ex -. ../common.sh +\. ../common.sh die () { echo $@ ; cleanup ; exit 1; } @@ -13,7 +13,7 @@ cleanup() { rm -rf "$(nvm_version_path "iojs-${VERSION}")" } -. ../../nvm.sh +\. ../../nvm.sh nvm deactivate || die "unable to deactivate; current: >$(nvm current)<" diff --git "a/test/fast/Running \"nvm use system\" should work as expected" "b/test/fast/Running \"nvm use system\" should work as expected" index 196353d..9a0c509 100755 --- "a/test/fast/Running \"nvm use system\" should work as expected" +++ "b/test/fast/Running \"nvm use system\" should work as expected" @@ -7,7 +7,7 @@ cleanup() { } die() { echo $@ ; cleanup ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh nvm_has_system_node() { return 0; } nvm_print_npm_version() { command printf ' (npm v1.2.3)'; } diff --git "a/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" "b/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" index e600497..71f208c 100755 --- "a/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" +++ "b/test/fast/Running \"nvm use x\" should create and change the \"current\" symlink" @@ -3,7 +3,7 @@ set -ex export NVM_SYMLINK_CURRENT=true -. ../../nvm.sh +\. ../../nvm.sh rm -rf "${NVM_DIR}/v0.10.29" mkdir "${NVM_DIR}/v0.10.29" diff --git "a/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" "b/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" index b84ebf4..be6284d 100755 --- "a/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" +++ "b/test/fast/Running \"nvm use x\" should not create the \"current\" symlink if $NVM_SYMLINK_CURRENT is false" @@ -2,7 +2,7 @@ set -ex -. ../../nvm.sh +\. ../../nvm.sh TEST_NODE_VERSION="v0.10.29" diff --git a/test/fast/Sourcing nvm.sh should make the nvm command available. b/test/fast/Sourcing nvm.sh should make the nvm command available. index 9c215d5..e74f347 100755 --- a/test/fast/Sourcing nvm.sh should make the nvm command available. +++ b/test/fast/Sourcing nvm.sh should make the nvm command available. @@ -2,6 +2,6 @@ set -ex -. ../../nvm.sh +\. ../../nvm.sh nvm diff --git a/test/fast/Sourcing nvm.sh should not modify parameters of caller b/test/fast/Sourcing nvm.sh should not modify parameters of caller index cf8b149..2053b73 100755 --- a/test/fast/Sourcing nvm.sh should not modify parameters of caller +++ b/test/fast/Sourcing nvm.sh should not modify parameters of caller @@ -3,5 +3,5 @@ set -ex set -- yes -. ../../nvm.sh +\. ../../nvm.sh [ "$1" = yes ] diff --git a/test/fast/Unit tests/iojs_version_has_solaris_binary b/test/fast/Unit tests/iojs_version_has_solaris_binary index 7a797cb..8369ef5 100755 --- a/test/fast/Unit tests/iojs_version_has_solaris_binary +++ b/test/fast/Unit tests/iojs_version_has_solaris_binary @@ -2,8 +2,8 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh -. ../../common.sh +\. ../../../nvm.sh +\. ../../common.sh assert_not_ok iojs_version_has_solaris_binary "" assert_not_ok iojs_version_has_solaris_binary "foo" diff --git a/test/fast/Unit tests/node_version_has_solaris_binary b/test/fast/Unit tests/node_version_has_solaris_binary index db62d59..2a12fe7 100755 --- a/test/fast/Unit tests/node_version_has_solaris_binary +++ b/test/fast/Unit tests/node_version_has_solaris_binary @@ -2,8 +2,8 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh -. ../../common.sh +\. ../../../nvm.sh +\. ../../common.sh # Invalid version numbers fail assert_not_ok node_version_has_solaris_binary "" diff --git a/test/fast/Unit tests/nvm ls-remote b/test/fast/Unit tests/nvm ls-remote index 449d4af..7ef0487 100755 --- a/test/fast/Unit tests/nvm ls-remote +++ b/test/fast/Unit tests/nvm ls-remote @@ -8,11 +8,11 @@ cleanup() { unset -f nvm_download nvm_ls_remote nvm_ls_remote_iojs } -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate 2>/dev/null || die 'unable to deactivate' -. ../../common.sh +\. ../../common.sh REMOTE="$PWD/mocks/nvm_ls_remote.txt" nvm_ls_remote() { diff --git a/test/fast/Unit tests/nvm version-remote b/test/fast/Unit tests/nvm version-remote index dd587dc..12ef585 100755 --- a/test/fast/Unit tests/nvm version-remote +++ b/test/fast/Unit tests/nvm version-remote @@ -8,9 +8,9 @@ cleanup() { unset -f nvm_remote_version } -. ../../../nvm.sh +\. ../../../nvm.sh -. ../../common.sh +\. ../../common.sh nvm_remote_version() { echo "NVM_VERSION_ONLY:${NVM_VERSION_ONLY-},NVM_LTS:${NVM_LTS-},PATTERN:${PATTERN-}" diff --git a/test/fast/Unit tests/nvm_add_iojs_prefix b/test/fast/Unit tests/nvm_add_iojs_prefix index 4a8d1ee..4ad727e 100755 --- a/test/fast/Unit tests/nvm_add_iojs_prefix +++ b/test/fast/Unit tests/nvm_add_iojs_prefix @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "_$(nvm_add_iojs_prefix 1)" = "_iojs-v1" ] || die '"nvm_add_iojs_prefix 1" did not return "iojs-v1"' [ "_$(nvm_add_iojs_prefix iojs-1)" = "_iojs-v1" ] || die '"nvm_add_iojs_prefix iojs-1" did not return "iojs-v1"' diff --git a/test/fast/Unit tests/nvm_alias b/test/fast/Unit tests/nvm_alias index f51aac8..6c350f5 100755 --- a/test/fast/Unit tests/nvm_alias +++ b/test/fast/Unit tests/nvm_alias @@ -6,7 +6,7 @@ cleanup () { rm -rf ../../../alias/test } -. ../../../nvm.sh +\. ../../../nvm.sh OUTPUT="$(nvm_alias 2>&1)" EXPECTED_OUTPUT='An alias is required.' diff --git a/test/fast/Unit tests/nvm_alias_path b/test/fast/Unit tests/nvm_alias_path index 0766e2a..aaf7b1f 100755 --- a/test/fast/Unit tests/nvm_alias_path +++ b/test/fast/Unit tests/nvm_alias_path @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "_$(nvm_alias_path)" = "_$NVM_DIR/alias" ] || die "nvm_alias_path did not requrn correct location" diff --git a/test/fast/Unit tests/nvm_checksum b/test/fast/Unit tests/nvm_checksum index 73cf1f1..2075733 100755 --- a/test/fast/Unit tests/nvm_checksum +++ b/test/fast/Unit tests/nvm_checksum @@ -6,7 +6,7 @@ cleanup () { } die () { echo $@ ; cleanup; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p tmp touch tmp/emptyfile diff --git a/test/fast/Unit tests/nvm_compare_checksum b/test/fast/Unit tests/nvm_compare_checksum index e74adb1..d9ddc6d 100755 --- a/test/fast/Unit tests/nvm_compare_checksum +++ b/test/fast/Unit tests/nvm_compare_checksum @@ -5,7 +5,7 @@ cleanup () { } die () { echo $@ ; cleanup ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh set -ex diff --git a/test/fast/Unit tests/nvm_compute_checksum b/test/fast/Unit tests/nvm_compute_checksum index 2684c4c..1ca5cce 100755 --- a/test/fast/Unit tests/nvm_compute_checksum +++ b/test/fast/Unit tests/nvm_compute_checksum @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh set +x OUTPUT="$(nvm_compute_checksum 2>&1 >/dev/null || echo)" diff --git a/test/fast/Unit tests/nvm_die_on_prefix b/test/fast/Unit tests/nvm_die_on_prefix index de14deb..67dfe50 100755 --- a/test/fast/Unit tests/nvm_die_on_prefix +++ b/test/fast/Unit tests/nvm_die_on_prefix @@ -7,7 +7,7 @@ cleanup () { } die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh OUTPUT="$(nvm_die_on_prefix 2>&1)" EXPECTED_OUTPUT="First argument \"delete the prefix\" must be zero or one" diff --git a/test/fast/Unit tests/nvm_ensure_default_set b/test/fast/Unit tests/nvm_ensure_default_set index fb0461b..8a40891 100755 --- a/test/fast/Unit tests/nvm_ensure_default_set +++ b/test/fast/Unit tests/nvm_ensure_default_set @@ -1,10 +1,10 @@ #!/bin/sh -. ../../common.sh +\. ../../common.sh die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh EXPECTED_OUTPUT="nvm_ensure_default_set: a version is required" OUTPUT="$(nvm_ensure_default_set 2>&1 >/dev/null)" diff --git a/test/fast/Unit tests/nvm_ensure_version_installed b/test/fast/Unit tests/nvm_ensure_version_installed index 7c49aaf..f96d9bd 100755 --- a/test/fast/Unit tests/nvm_ensure_version_installed +++ b/test/fast/Unit tests/nvm_ensure_version_installed @@ -5,7 +5,7 @@ cleanup () { rm -rf "$(nvm_version_path v0.1.2)" } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p "$(nvm_version_path v0.1.2)" diff --git a/test/fast/Unit tests/nvm_ensure_version_prefix b/test/fast/Unit tests/nvm_ensure_version_prefix index 184ddea..08ed4a8 100755 --- a/test/fast/Unit tests/nvm_ensure_version_prefix +++ b/test/fast/Unit tests/nvm_ensure_version_prefix @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "_$(nvm_ensure_version_prefix 1)" = "_v1" ] || die '"nvm_ensure_version_prefix 1" did not return "v1"' [ "_$(nvm_ensure_version_prefix v1)" = "_v1" ] || die '"nvm_ensure_version_prefix v1" did not return "v1"' diff --git a/test/fast/Unit tests/nvm_find_up b/test/fast/Unit tests/nvm_find_up index 39fb568..f035d06 100755 --- a/test/fast/Unit tests/nvm_find_up +++ b/test/fast/Unit tests/nvm_find_up @@ -11,7 +11,7 @@ cleanup () { rm -rf tmp_nvm_find_up } -. ../../../nvm.sh +\. ../../../nvm.sh setup diff --git a/test/fast/Unit tests/nvm_format_version b/test/fast/Unit tests/nvm_format_version index e77b3da..1a2396a 100755 --- a/test/fast/Unit tests/nvm_format_version +++ b/test/fast/Unit tests/nvm_format_version @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh INPUT="0.1.2" OUTPUT="$(nvm_format_version "$INPUT")" diff --git a/test/fast/Unit tests/nvm_get_arch b/test/fast/Unit tests/nvm_get_arch index 102c9da..db19906 100755 --- a/test/fast/Unit tests/nvm_get_arch +++ b/test/fast/Unit tests/nvm_get_arch @@ -11,7 +11,7 @@ cleanup() { die () { cleanup; echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh # Directory where mocked binaries used by nvm_get_arch for each OS/arch are # located diff --git a/test/fast/Unit tests/nvm_get_checksum b/test/fast/Unit tests/nvm_get_checksum index 1ac8868..d842b14 100755 --- a/test/fast/Unit tests/nvm_get_checksum +++ b/test/fast/Unit tests/nvm_get_checksum @@ -8,7 +8,7 @@ cleanup () { die () { echo $@ ; cleanup ; exit 1; } set +e # TODO: fix -. ../../../nvm.sh +\. ../../../nvm.sh set -e nvm_get_mirror() { diff --git a/test/fast/Unit tests/nvm_get_checksum_alg b/test/fast/Unit tests/nvm_get_checksum_alg index e794595..e26ca44 100755 --- a/test/fast/Unit tests/nvm_get_checksum_alg +++ b/test/fast/Unit tests/nvm_get_checksum_alg @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh ALG="$(nvm_get_checksum_alg)" diff --git a/test/fast/Unit tests/nvm_get_latest missing curl or wget b/test/fast/Unit tests/nvm_get_latest missing curl or wget index 1ad960a..5fede18 100755 --- a/test/fast/Unit tests/nvm_get_latest missing curl or wget +++ b/test/fast/Unit tests/nvm_get_latest missing curl or wget @@ -6,7 +6,7 @@ cleanup() { unset -f nvm_has } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_has() { return 1 ; } diff --git a/test/fast/Unit tests/nvm_get_minor_version b/test/fast/Unit tests/nvm_get_minor_version index ebb63b3..24fb41d 100755 --- a/test/fast/Unit tests/nvm_get_minor_version +++ b/test/fast/Unit tests/nvm_get_minor_version @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh expect () { INPUT="$1" diff --git a/test/fast/Unit tests/nvm_get_mirror b/test/fast/Unit tests/nvm_get_mirror index 02863f3..b4a5d17 100755 --- a/test/fast/Unit tests/nvm_get_mirror +++ b/test/fast/Unit tests/nvm_get_mirror @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh ! nvm_get_mirror || die 'unknown release type did not error' ! nvm_get_mirror node || die 'unknown release type did not error' diff --git a/test/fast/Unit tests/nvm_has b/test/fast/Unit tests/nvm_has index 437d26f..5eb9d5b 100755 --- a/test/fast/Unit tests/nvm_has +++ b/test/fast/Unit tests/nvm_has @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_has cat && type cat > /dev/null || die 'nvm_has locates "cat" properly' diff --git a/test/fast/Unit tests/nvm_has_solaris_binary b/test/fast/Unit tests/nvm_has_solaris_binary index 5a29112..9adcd76 100755 --- a/test/fast/Unit tests/nvm_has_solaris_binary +++ b/test/fast/Unit tests/nvm_has_solaris_binary @@ -2,8 +2,8 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh -. ../../common.sh +\. ../../../nvm.sh +\. ../../common.sh # Invalid version numbers fail assert_not_ok nvm_has_solaris_binary "" diff --git a/test/fast/Unit tests/nvm_has_system_iojs b/test/fast/Unit tests/nvm_has_system_iojs index 58e858f..0416b71 100755 --- a/test/fast/Unit tests/nvm_has_system_iojs +++ b/test/fast/Unit tests/nvm_has_system_iojs @@ -7,7 +7,7 @@ cleanup () { } die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/versions/io.js/v0.1.2" touch "${NVM_DIR}/versions/io.js/v0.1.2/node" diff --git a/test/fast/Unit tests/nvm_has_system_node b/test/fast/Unit tests/nvm_has_system_node index 10629ee..ea1acfb 100755 --- a/test/fast/Unit tests/nvm_has_system_node +++ b/test/fast/Unit tests/nvm_has_system_node @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh cleanup () { rm -rf "${NVM_DIR}/v0.1.2/node" diff --git a/test/fast/Unit tests/nvm_iojs_prefix b/test/fast/Unit tests/nvm_iojs_prefix index 6666695..f51d2c3 100755 --- a/test/fast/Unit tests/nvm_iojs_prefix +++ b/test/fast/Unit tests/nvm_iojs_prefix @@ -2,6 +2,6 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "$(nvm_iojs_prefix)" = "iojs" ] || die '"nvm_iojs_prefix" did not return the string "iojs". why did this fail?!' diff --git a/test/fast/Unit tests/nvm_is_alias b/test/fast/Unit tests/nvm_is_alias index b5cf305..a05fc49 100755 --- a/test/fast/Unit tests/nvm_is_alias +++ b/test/fast/Unit tests/nvm_is_alias @@ -3,7 +3,7 @@ cleanup () { unalias foo; unalias grep; } die () { echo $@ ; cleanup ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh alias foo='bar' nvm_is_alias foo || die '"nvm_is_alias foo" was not true' diff --git a/test/fast/Unit tests/nvm_is_iojs_version b/test/fast/Unit tests/nvm_is_iojs_version index e2f5e3f..73803aa 100755 --- a/test/fast/Unit tests/nvm_is_iojs_version +++ b/test/fast/Unit tests/nvm_is_iojs_version @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_is_iojs_version 'iojs-' || die '"nvm_is_iojs_version iojs- was not true' nvm_is_iojs_version 'iojs-foo' || die '"nvm_is_iojs_version iojs- was not true' diff --git a/test/fast/Unit tests/nvm_is_merged_node_version b/test/fast/Unit tests/nvm_is_merged_node_version index 7cf5334..b7cc0a3 100755 --- a/test/fast/Unit tests/nvm_is_merged_node_version +++ b/test/fast/Unit tests/nvm_is_merged_node_version @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_is_merged_node_version '4.0' || die '"nvm_is_merged_node_version 4.0 was not true' nvm_is_merged_node_version '5.1' || die '"nvm_is_merged_node_version 5.1 was not true' diff --git a/test/fast/Unit tests/nvm_is_natural_num b/test/fast/Unit tests/nvm_is_natural_num index e9b0668..8d08807 100755 --- a/test/fast/Unit tests/nvm_is_natural_num +++ b/test/fast/Unit tests/nvm_is_natural_num @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh ! nvm_is_natural_num || die 'no args is not false' ! nvm_is_natural_num '' || die 'empty string is not false' diff --git a/test/fast/Unit tests/nvm_is_valid_version b/test/fast/Unit tests/nvm_is_valid_version index d34f767..d98e60f 100755 --- a/test/fast/Unit tests/nvm_is_valid_version +++ b/test/fast/Unit tests/nvm_is_valid_version @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_is_valid_version 0.1.2 || die "nvm_is_valid_version 0.1.2 did not return 0" nvm_is_valid_version foo && die "nvm_is_valid_version foo did not return 1" diff --git a/test/fast/Unit tests/nvm_ls_current b/test/fast/Unit tests/nvm_ls_current index bc4a4f5..4fe484b 100755 --- a/test/fast/Unit tests/nvm_ls_current +++ b/test/fast/Unit tests/nvm_ls_current @@ -6,7 +6,7 @@ TEST_DIR="$TEST_PWD/nvm_ls_current_tmp" cleanup() { rm -rf "$TEST_DIR"; unset -f return_zero; alias node='node' ; unalias node; } die () { echo $@ ; cleanup ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh return_zero () { return 0; } diff --git a/test/fast/Unit tests/nvm_ls_remote b/test/fast/Unit tests/nvm_ls_remote index 21a1320..0c194eb 100755 --- a/test/fast/Unit tests/nvm_ls_remote +++ b/test/fast/Unit tests/nvm_ls_remote @@ -6,7 +6,7 @@ cleanup() { unset -f nvm_download } -. ../../../nvm.sh +\. ../../../nvm.sh MOCKS_DIR="$PWD/mocks" diff --git a/test/fast/Unit tests/nvm_ls_remote LTS aliases b/test/fast/Unit tests/nvm_ls_remote LTS aliases index 9a577e6..2f35388 100755 --- a/test/fast/Unit tests/nvm_ls_remote LTS aliases +++ b/test/fast/Unit tests/nvm_ls_remote LTS aliases @@ -14,7 +14,7 @@ cleanup() { rm -rf "$TEST_PATH" } -. ../../../nvm.sh +\. ../../../nvm.sh set -ex diff --git a/test/fast/Unit tests/nvm_ls_remote_iojs b/test/fast/Unit tests/nvm_ls_remote_iojs index 1f909c7..a23156c 100755 --- a/test/fast/Unit tests/nvm_ls_remote_iojs +++ b/test/fast/Unit tests/nvm_ls_remote_iojs @@ -6,7 +6,7 @@ cleanup() { unset -f nvm_download } -. ../../../nvm.sh +\. ../../../nvm.sh # sample output at the time the test was written TAB_PATH="$PWD/mocks/iojs.org-dist-index.tab" diff --git a/test/fast/Unit tests/nvm_make_alias b/test/fast/Unit tests/nvm_make_alias index c57906d..1759bb6 100755 --- a/test/fast/Unit tests/nvm_make_alias +++ b/test/fast/Unit tests/nvm_make_alias @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh OUTPUT="$(nvm_make_alias 2>&1)" EXIT_CODE="$(nvm_make_alias >/dev/null 2>&1 ; echo $?)" diff --git a/test/fast/Unit tests/nvm_node_prefix b/test/fast/Unit tests/nvm_node_prefix index a0bc098..13e3f51 100755 --- a/test/fast/Unit tests/nvm_node_prefix +++ b/test/fast/Unit tests/nvm_node_prefix @@ -2,6 +2,6 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "$(nvm_node_prefix)" = "node" ] || die '"nvm_node_prefix" did not return the string "node". why did this fail?!' diff --git a/test/fast/Unit tests/nvm_num_version_groups b/test/fast/Unit tests/nvm_num_version_groups index 88c240e..b6da88e 100755 --- a/test/fast/Unit tests/nvm_num_version_groups +++ b/test/fast/Unit tests/nvm_num_version_groups @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "~$(nvm_num_version_groups)" = "~0" ] || die "no args should give 0" [ "~$(nvm_num_version_groups v)" = "~0" ] || die "just "v" should give 0" diff --git a/test/fast/Unit tests/nvm_prepend_path b/test/fast/Unit tests/nvm_prepend_path index ef0af81..f46e024 100755 --- a/test/fast/Unit tests/nvm_prepend_path +++ b/test/fast/Unit tests/nvm_prepend_path @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh TEST_PATH=/usr/bin:/usr/local/bin diff --git a/test/fast/Unit tests/nvm_print_alias_path b/test/fast/Unit tests/nvm_print_alias_path index 14f439a..0d0babe 100755 --- a/test/fast/Unit tests/nvm_print_alias_path +++ b/test/fast/Unit tests/nvm_print_alias_path @@ -1,5 +1,5 @@ #!/bin/sh -. ../../common.sh +\. ../../common.sh die () { echo $@ ; cleanup ; exit 1; } @@ -7,7 +7,7 @@ cleanup () { unset -f nvm_alias nvm_version } -. ../../../nvm.sh +\. ../../../nvm.sh NVM_ALIAS_DIR='path/to/the alias/dir' diff --git a/test/fast/Unit tests/nvm_print_default_alias b/test/fast/Unit tests/nvm_print_default_alias index 1785756..4915a19 100755 --- a/test/fast/Unit tests/nvm_print_default_alias +++ b/test/fast/Unit tests/nvm_print_default_alias @@ -1,5 +1,5 @@ #!/bin/sh -. ../../common.sh +\. ../../common.sh die () { echo $@ ; cleanup ; exit 1; } @@ -7,7 +7,7 @@ cleanup () { unset -f nvm_print_implicit_alias nvm_version } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_print_implicit_alias() { echo '' diff --git a/test/fast/Unit tests/nvm_print_implicit_alias errors b/test/fast/Unit tests/nvm_print_implicit_alias errors index a617383..e824292 100755 --- a/test/fast/Unit tests/nvm_print_implicit_alias errors +++ b/test/fast/Unit tests/nvm_print_implicit_alias errors @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh EXPECTED_FIRST_MSG="nvm_print_implicit_alias must be specified with local or remote as the first argument." [ "_$(nvm_print_implicit_alias 2>&1)" = "_$EXPECTED_FIRST_MSG" ] \ diff --git a/test/fast/Unit tests/nvm_print_implicit_alias success b/test/fast/Unit tests/nvm_print_implicit_alias success index 7a53d0c..eb5671d 100755 --- a/test/fast/Unit tests/nvm_print_implicit_alias success +++ b/test/fast/Unit tests/nvm_print_implicit_alias success @@ -13,7 +13,7 @@ cleanup() { unset -f nvm_ls_remote nvm_ls_remote_iojs } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir "${NVM_DIR}/v0.2.3" mkdir "${NVM_DIR}/v0.3.4" diff --git a/test/fast/Unit tests/nvm_print_npm_version b/test/fast/Unit tests/nvm_print_npm_version index 2bf24a0..792c6cc 100755 --- a/test/fast/Unit tests/nvm_print_npm_version +++ b/test/fast/Unit tests/nvm_print_npm_version @@ -7,7 +7,7 @@ cleanup () { } die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_has() { return 1; } OUTPUT="$(nvm_print_npm_version)" diff --git a/test/fast/Unit tests/nvm_remote_version b/test/fast/Unit tests/nvm_remote_version index 0c17591..e380b2f 100755 --- a/test/fast/Unit tests/nvm_remote_version +++ b/test/fast/Unit tests/nvm_remote_version @@ -6,7 +6,7 @@ cleanup() { unset -f nvm_ls_remote nvm_ls_remote_iojs } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_ls_remote() { echo "N/A" diff --git a/test/fast/Unit tests/nvm_remote_versions b/test/fast/Unit tests/nvm_remote_versions index bbbaa24..f505008 100755 --- a/test/fast/Unit tests/nvm_remote_versions +++ b/test/fast/Unit tests/nvm_remote_versions @@ -6,7 +6,7 @@ cleanup() { unset -f nvm_ls_remote nvm_ls_remote_iojs } -. ../../../nvm.sh +\. ../../../nvm.sh OUTPUT="$(nvm_remote_versions stable 2>&1)" EXPECTED_OUTPUT="Implicit aliases are not supported in nvm_remote_versions." diff --git a/test/fast/Unit tests/nvm_strip_iojs_prefix b/test/fast/Unit tests/nvm_strip_iojs_prefix index 782fbc4..98aa43c 100755 --- a/test/fast/Unit tests/nvm_strip_iojs_prefix +++ b/test/fast/Unit tests/nvm_strip_iojs_prefix @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "_$(nvm_strip_iojs_prefix iojs)" = "_" ] || die '"nvm_strip_iojs_prefix iojs" did not return an empty string' [ "_$(nvm_strip_iojs_prefix iojs-)" = "_" ] || die '"nvm_strip_iojs_prefix iojs-" did not return an empty string' diff --git a/test/fast/Unit tests/nvm_strip_path b/test/fast/Unit tests/nvm_strip_path index b926cc4..e2d9a49 100755 --- a/test/fast/Unit tests/nvm_strip_path +++ b/test/fast/Unit tests/nvm_strip_path @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh TEST_PATH=$NVM_DIR/v0.10.5/bin:/usr/bin:$NVM_DIR/v0.11.5/bin:$NVM_DIR/v0.9.5/bin:/usr/local/bin:$NVM_DIR/v0.2.5/bin:$NVM_DIR/versions/node/v0.12.0/bin:$NVM_DIR/versions/io.js/v1.0.0/bin diff --git a/test/fast/Unit tests/nvm_supports_xz b/test/fast/Unit tests/nvm_supports_xz index 5a9e4f7..09086c3 100755 --- a/test/fast/Unit tests/nvm_supports_xz +++ b/test/fast/Unit tests/nvm_supports_xz @@ -9,7 +9,7 @@ cleanup() { } die () { echo $@ ; cleanup ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh OLDPATH=$PATH diff --git a/test/fast/Unit tests/nvm_tree_contains_path b/test/fast/Unit tests/nvm_tree_contains_path index a4ca09e..4efac10 100755 --- a/test/fast/Unit tests/nvm_tree_contains_path +++ b/test/fast/Unit tests/nvm_tree_contains_path @@ -8,7 +8,7 @@ cleanup () { } die () { echo $@ ; cleanup; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p tmp touch tmp/node diff --git a/test/fast/Unit tests/nvm_validate_implicit_alias b/test/fast/Unit tests/nvm_validate_implicit_alias index 979f8fb..9d93af9 100755 --- a/test/fast/Unit tests/nvm_validate_implicit_alias +++ b/test/fast/Unit tests/nvm_validate_implicit_alias @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh EXPECTED_MSG="Only implicit aliases 'stable', 'unstable', 'iojs', and 'node' are supported." [ "_$(nvm_validate_implicit_alias 2>&1)" = "_$EXPECTED_MSG" ] \ diff --git a/test/fast/Unit tests/nvm_version b/test/fast/Unit tests/nvm_version index 4d5063b..cba10dc 100755 --- a/test/fast/Unit tests/nvm_version +++ b/test/fast/Unit tests/nvm_version @@ -5,7 +5,7 @@ cleanup () { unset -f nvm_ls_current nvm_ls } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_ls_current() { echo "CURRENT!" diff --git a/test/fast/Unit tests/nvm_version_dir b/test/fast/Unit tests/nvm_version_dir index 6fc880a..5bc5948 100755 --- a/test/fast/Unit tests/nvm_version_dir +++ b/test/fast/Unit tests/nvm_version_dir @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "$(nvm_version_dir)" = "$NVM_DIR/versions/node" ] || die '"nvm_version_dir" did not return new dir path' [ "$(nvm_version_dir iojs)" = "$NVM_DIR/versions/io.js" ] || die '"nvm_version_dir iojs" did not return iojs dir path' diff --git a/test/fast/Unit tests/nvm_version_greater b/test/fast/Unit tests/nvm_version_greater index 63f5800..a771e84 100755 --- a/test/fast/Unit tests/nvm_version_greater +++ b/test/fast/Unit tests/nvm_version_greater @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm_version_greater 0.10.0 0.2.12 || die '"nvm_version_greater 0.10.0 0.2.12" did not return true' diff --git a/test/fast/Unit tests/nvm_version_path b/test/fast/Unit tests/nvm_version_path index b8ae685..74996a9 100755 --- a/test/fast/Unit tests/nvm_version_path +++ b/test/fast/Unit tests/nvm_version_path @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh OUTPUT="$(nvm_version_path foo)" EXPECTED_OUTPUT="$NVM_DIR/foo" diff --git a/test/install_script/nvm_check_global_modules b/test/install_script/nvm_check_global_modules index c57d672..a526dcc 100755 --- a/test/install_script/nvm_check_global_modules +++ b/test/install_script/nvm_check_global_modules @@ -12,7 +12,7 @@ cleanup () { } die () { echo $@ ; cleanup ; exit 1; } -NVM_ENV=testing . ../../install.sh +NVM_ENV=testing \. ../../install.sh setup () { ORIGINAL_PATH="$PATH" diff --git a/test/install_script/nvm_detect_profile b/test/install_script/nvm_detect_profile index 92da1d2..e5b71a8 100755 --- a/test/install_script/nvm_detect_profile +++ b/test/install_script/nvm_detect_profile @@ -2,7 +2,7 @@ setup () { HOME="." - NVM_ENV=testing . ../../install.sh + NVM_ENV=testing \. ../../install.sh touch ".bashrc" touch ".bash_profile" touch ".zshrc" diff --git a/test/install_script/nvm_do_install b/test/install_script/nvm_do_install index a969602..8ced0eb 100755 --- a/test/install_script/nvm_do_install +++ b/test/install_script/nvm_do_install @@ -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' diff --git a/test/install_script/nvm_install_dir b/test/install_script/nvm_install_dir index 8ce5a42..d6d1a42 100755 --- a/test/install_script/nvm_install_dir +++ b/test/install_script/nvm_install_dir @@ -6,7 +6,7 @@ cleanup () { } die () { echo $@ ; cleanup ; exit 1; } -NVM_ENV=testing . ../../install.sh +NVM_ENV=testing \. ../../install.sh HOME="__home__" diff --git a/test/install_script/nvm_reset b/test/install_script/nvm_reset index bc86aa6..7eb9cd2 100755 --- a/test/install_script/nvm_reset +++ b/test/install_script/nvm_reset @@ -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' diff --git a/test/install_script/nvm_source b/test/install_script/nvm_source index 8307639..977c9f4 100755 --- a/test/install_script/nvm_source +++ b/test/install_script/nvm_source @@ -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" diff --git a/test/installation_iojs/install already installed uses it b/test/installation_iojs/install already installed uses it index 665dbbe..f423370 100755 --- a/test/installation_iojs/install already installed uses it +++ b/test/installation_iojs/install already installed uses it @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh [ "$(nvm install invalid.invalid 2>&1)" = "Version 'invalid.invalid' not found - try \`nvm ls-remote\` to browse available versions." ] || die "nvm installing an invalid version did not print a nice error message" diff --git a/test/installation_iojs/install from binary b/test/installation_iojs/install from binary index 8be865e..724e105 100755 --- a/test/installation_iojs/install from binary +++ b/test/installation_iojs/install from binary @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh NVM_TEST_VERSION="v1.0.0" NVM_PREFIXED_TEST_VERSION="iojs-$NVM_TEST_VERSION" diff --git a/test/installation_iojs/install from source b/test/installation_iojs/install from source index 354de49..c724b3d 100644 --- a/test/installation_iojs/install from source +++ b/test/installation_iojs/install from source @@ -1,10 +1,10 @@ #!/bin/sh -. ../common.sh +\. ../common.sh die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh set -ex diff --git a/test/installation_iojs/install two versions and use the latest one b/test/installation_iojs/install two versions and use the latest one index cc85653..29372bf 100755 --- a/test/installation_iojs/install two versions and use the latest one +++ b/test/installation_iojs/install two versions and use the latest one @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh # Remove the stuff we're clobbering. [ -e "${NVM_DIR}/versions/io.js/v1.0.0" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.0" diff --git a/test/installation_iojs/install version specified in .nvmrc from binary b/test/installation_iojs/install version specified in .nvmrc from binary index b798c2d..73dcfd3 100755 --- a/test/installation_iojs/install version specified in .nvmrc from binary +++ b/test/installation_iojs/install version specified in .nvmrc from binary @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh NVM_TEST_VERSION=v1.0.0 NVM_PREFIXED_TEST_VERSION="iojs-${NVM_TEST_VERSION}" diff --git a/test/installation_iojs/install version specified in .nvmrc from source b/test/installation_iojs/install version specified in .nvmrc from source index df3f46c..9f97a30 100644 --- a/test/installation_iojs/install version specified in .nvmrc from source +++ b/test/installation_iojs/install version specified in .nvmrc from source @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh set -ex diff --git a/test/installation_iojs/install while reinstalling packages b/test/installation_iojs/install while reinstalling packages index 56e5ff4..3b2dc0f 100755 --- a/test/installation_iojs/install while reinstalling packages +++ b/test/installation_iojs/install while reinstalling packages @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh # Remove the stuff we're clobbering. [ -e "${NVM_DIR}/versions/io.js/v1.0.0" ] && rm -R "${NVM_DIR}/versions/io.js/v1.0.0" diff --git a/test/installation_iojs/nvm install v1 works b/test/installation_iojs/nvm install v1 works index 95ecc42..505aef7 100755 --- a/test/installation_iojs/nvm install v1 works +++ b/test/installation_iojs/nvm install v1 works @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh NVM_VERSION="v1" NVM_PREFIXED_TEST_VERSION="$(nvm ls-remote "$NVM_VERSION" | tail -1 | sed 's/^[ ]*//;s/[ ]*$//')" diff --git a/test/installation_iojs/teardown_dir b/test/installation_iojs/teardown_dir index 295db62..2eda91f 100755 --- a/test/installation_iojs/teardown_dir +++ b/test/installation_iojs/teardown_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../nvm.sh +\. ../../nvm.sh nvm deactivate nvm uninstall iojs-v1.0.0 nvm uninstall iojs-v1.0.3 diff --git a/test/installation_node/install LTS b/test/installation_node/install LTS index 86aa33d..2435fc3 100755 --- a/test/installation_node/install LTS +++ b/test/installation_node/install LTS @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh nvm unalias default >/dev/null 2>&1 || die 'unable to unalias default' diff --git a/test/installation_node/install already installed uses it b/test/installation_node/install already installed uses it index b47694f..2906784 100755 --- a/test/installation_node/install already installed uses it +++ b/test/installation_node/install already installed uses it @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh [ "$(nvm install invalid.invalid 2>&1)" = "Version 'invalid.invalid' not found - try \`nvm ls-remote\` to browse available versions." ] || die "nvm installing an invalid version did not print a nice error message" diff --git a/test/installation_node/install from binary b/test/installation_node/install from binary index 114205d..d3635f3 100755 --- a/test/installation_node/install from binary +++ b/test/installation_node/install from binary @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh nvm unalias default || die 'unable to unalias default' diff --git a/test/installation_node/install from source b/test/installation_node/install from source index 1d4fa39..b0942f9 100755 --- a/test/installation_node/install from source +++ b/test/installation_node/install from source @@ -5,7 +5,7 @@ set -ex die () { echo $@ ; exit 1; } set +e # TODO: fix -. ../../nvm.sh +\. ../../nvm.sh set -e nvm deactivate || die 'deactivate failed' diff --git a/test/installation_node/install from source implicitly b/test/installation_node/install from source implicitly index 7b01178..a3c043c 100755 --- a/test/installation_node/install from source implicitly +++ b/test/installation_node/install from source implicitly @@ -5,7 +5,7 @@ set -ex die () { echo $@ ; exit 1; } set +e # TODO: fix -. ../../nvm.sh +\. ../../nvm.sh set -e nvm deactivate || die 'deactivate failed' diff --git a/test/installation_node/install from source with thread parameter b/test/installation_node/install from source with thread parameter index 4de8942..f9aee3d 100755 --- a/test/installation_node/install from source with thread parameter +++ b/test/installation_node/install from source with thread parameter @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh NVM_TEST_VERSION=v0.10.41 diff --git a/test/installation_node/install from source without V8 snapshot for ARM b/test/installation_node/install from source without V8 snapshot for ARM index 3c2eeaf..0e22ac7 100755 --- a/test/installation_node/install from source without V8 snapshot for ARM +++ b/test/installation_node/install from source without V8 snapshot for ARM @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh NVM_TEST_VERSION=v0.10.7 diff --git a/test/installation_node/install two versions and use the latest one b/test/installation_node/install two versions and use the latest one index 6f1d380..35ca3b4 100755 --- a/test/installation_node/install two versions and use the latest one +++ b/test/installation_node/install two versions and use the latest one @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh # Remove the stuff we're clobbering. [ -e "${NVM_DIR}/v0.9.7" ] && rm -R "${NVM_DIR}/v0.9.7" diff --git a/test/installation_node/install version specified in .nvmrc from binary b/test/installation_node/install version specified in .nvmrc from binary index ad5f296..c074d65 100755 --- a/test/installation_node/install version specified in .nvmrc from binary +++ b/test/installation_node/install version specified in .nvmrc from binary @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh NVM_TEST_VERSION=v0.10.7 diff --git a/test/installation_node/install version specified in .nvmrc from source b/test/installation_node/install version specified in .nvmrc from source index 63ea0ea..89094a8 100755 --- a/test/installation_node/install version specified in .nvmrc from source +++ b/test/installation_node/install version specified in .nvmrc from source @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh NVM_TEST_VERSION=v0.10.7 diff --git a/test/installation_node/install while reinstalling packages b/test/installation_node/install while reinstalling packages index 7d1a15e..53879d5 100755 --- a/test/installation_node/install while reinstalling packages +++ b/test/installation_node/install while reinstalling packages @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh # Remove the stuff we're clobbering. [ -e "${NVM_DIR}/v0.9.7" ] && rm -R "${NVM_DIR}/v0.9.7" diff --git a/test/installation_node/teardown_dir b/test/installation_node/teardown_dir index a37d0e6..5f1d6ce 100755 --- a/test/installation_node/teardown_dir +++ b/test/installation_node/teardown_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../nvm.sh +\. ../../nvm.sh nvm deactivate nvm uninstall v0.10.7 nvm uninstall v4.2.2 diff --git "a/test/slow/Running \"nvm current\" should display current nvm environment." "b/test/slow/Running \"nvm current\" should display current nvm environment." index 05082e3..c36e55e 100755 --- "a/test/slow/Running \"nvm current\" should display current nvm environment." +++ "b/test/slow/Running \"nvm current\" should display current nvm environment." @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh nvm install 0.10 diff --git a/test/slow/node 0.6.21 should install 0.6.21-pre b/test/slow/node 0.6.21 should install 0.6.21-pre index fd98aa9..299c3fc 100755 --- a/test/slow/node 0.6.21 should install 0.6.21-pre +++ b/test/slow/node 0.6.21 should install 0.6.21-pre @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../nvm.sh +\. ../../nvm.sh nvm install 0.6.21 || die 'v0.6.21 installation failed' [ "_$(node -v)" = "_v0.6.21-pre" ] || die "v0.6.21-pre not installed with v0.6.21, got $(node -v)" diff --git "a/test/slow/nvm exec/Preamble works and respects \"silent\" flag" "b/test/slow/nvm exec/Preamble works and respects \"silent\" flag" index a4153ab..866c43f 100755 --- "a/test/slow/nvm exec/Preamble works and respects \"silent\" flag" +++ "b/test/slow/nvm exec/Preamble works and respects \"silent\" flag" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm use 0.10 NPM_VERSION_TEN="$(npm --version)" diff --git "a/test/slow/nvm exec/Running \"nvm exec --lts\" should work" "b/test/slow/nvm exec/Running \"nvm exec --lts\" should work" index ce8ebaf..0939941 100755 --- "a/test/slow/nvm exec/Running \"nvm exec --lts\" should work" +++ "b/test/slow/nvm exec/Running \"nvm exec --lts\" should work" @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm install --lts || die 'nvm install --lts failed' diff --git "a/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" "b/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" index b06bbdc..72c385e 100755 --- "a/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" +++ "b/test/slow/nvm exec/Running \"nvm exec 0.x\" should work" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm use 0.10 NPM_VERSION_TEN="$(npm --version)" diff --git "a/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" "b/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" index 3cc0cb8..737f787 100755 --- "a/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" +++ "b/test/slow/nvm exec/Running \"nvm exec\" should pick up .nvmrc version" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm use 0.10.7 NPM_VERSION_TEN="$(npm --version)" diff --git a/test/slow/nvm exec/setup_dir b/test/slow/nvm exec/setup_dir index d6bba73..e7853d8 100755 --- a/test/slow/nvm exec/setup_dir +++ b/test/slow/nvm exec/setup_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm install 0.10.7 nvm install 1.0.0 nvm install --lts diff --git a/test/slow/nvm exec/teardown_dir b/test/slow/nvm exec/teardown_dir index 573e91d..ab6c7fc 100755 --- a/test/slow/nvm exec/teardown_dir +++ b/test/slow/nvm exec/teardown_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate nvm uninstall v0.10.7 nvm uninstall v1.0.0 diff --git "a/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" "b/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" index 1951b12..e21b5e4 100755 --- "a/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" +++ "b/test/slow/nvm reinstall-packages/Running \"nvm copy-packages $(nvm ls current)\" should error out" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm use 0.10.28 > /dev/null diff --git a/test/slow/nvm reinstall-packages/setup_dir b/test/slow/nvm reinstall-packages/setup_dir index c550f69..7648954 100755 --- a/test/slow/nvm reinstall-packages/setup_dir +++ b/test/slow/nvm reinstall-packages/setup_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm install 0.10.28 nvm install 0.10.29 diff --git a/test/slow/nvm reinstall-packages/should work as expected b/test/slow/nvm reinstall-packages/should work as expected index e0156d4..7235cbb 100755 --- a/test/slow/nvm reinstall-packages/should work as expected +++ b/test/slow/nvm reinstall-packages/should work as expected @@ -2,7 +2,7 @@ die () { echo "$@" ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm exec 0.10.28 npm install -g npm@~1.4.11 # this is required because before 1.4.10, npm ls doesn't indicated linked packages nvm exec 0.10.29 npm install -g npm@~1.4.11 # this is required because before 1.4.10, npm ls doesn't indicated linked packages diff --git a/test/slow/nvm reinstall-packages/teardown_dir b/test/slow/nvm reinstall-packages/teardown_dir index 1282eb4..13ea150 100755 --- a/test/slow/nvm reinstall-packages/teardown_dir +++ b/test/slow/nvm reinstall-packages/teardown_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm uninstall v0.10.28 nvm uninstall v0.10.29 diff --git "a/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" "b/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" index dfb90a9..0fa2089 100755 --- "a/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" +++ "b/test/slow/nvm run/Running \"nvm run --harmony --version\" should work" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm run 0.10.7 --harmony --version [ "_$(nvm run 0.10.7 --harmony --version 2>/dev/null | tail -1)" = "_v0.10.7" ] || die "\`nvm run --harmony --version\` failed to run with the correct version" diff --git "a/test/slow/nvm run/Running \"nvm run --lts\" should work" "b/test/slow/nvm run/Running \"nvm run --lts\" should work" index c512887..1c73b6e 100755 --- "a/test/slow/nvm run/Running \"nvm run --lts\" should work" +++ "b/test/slow/nvm run/Running \"nvm run --lts\" should work" @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh OUTPUT="$(nvm run --silent --lts --version)" EXPECTED_OUTPUT="$(nvm_match_version 'lts/*')" diff --git "a/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" "b/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" index 5a2aef2..7777bc9 100755 --- "a/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" +++ "b/test/slow/nvm run/Running \"nvm run 0.x\" should error out sensibly when 0.x is not installed" @@ -3,7 +3,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh EXPECTED_OUTPUT='N/A: version "v0.2" is not yet installed. diff --git "a/test/slow/nvm run/Running \"nvm run 0.x\" should work" "b/test/slow/nvm run/Running \"nvm run 0.x\" should work" index 9bcf97f..0d7e9ef 100755 --- "a/test/slow/nvm run/Running \"nvm run 0.x\" should work" +++ "b/test/slow/nvm run/Running \"nvm run 0.x\" should work" @@ -3,7 +3,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh [ "$(nvm run 0.10.7 --version | tail -1)" = "v0.10.7" ] || die "\`nvm run\` failed to run with the correct version" diff --git "a/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" "b/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" index d462488..dc2f197 100755 --- "a/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" +++ "b/test/slow/nvm run/Running \"nvm run\" should pick up .nvmrc version" @@ -3,7 +3,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh echo "0.10.7" > .nvmrc diff --git a/test/slow/nvm run/setup_dir b/test/slow/nvm run/setup_dir index a767a02..481be49 100755 --- a/test/slow/nvm run/setup_dir +++ b/test/slow/nvm run/setup_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm install 0.10.7 nvm install --lts=argon diff --git a/test/slow/nvm run/teardown_dir b/test/slow/nvm run/teardown_dir index 4290f07..d3274c8 100755 --- a/test/slow/nvm run/teardown_dir +++ b/test/slow/nvm run/teardown_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate nvm uninstall v0.10.7 diff --git "a/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" "b/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" index 67d054b..732f70a 100755 --- "a/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" +++ "b/test/slow/nvm uninstall/Running \"nvm uninstall 0.12.6\" uninstalls v0.12.6" @@ -3,7 +3,7 @@ die () { echo $@ ; exit 1; } # Source nvm -. ../../../nvm.sh +\. ../../../nvm.sh # Version to install/uninstall NVM_TEST_VERSION=0.12.6 diff --git "a/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" "b/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" index 0939d95..4f7fe05 100755 --- "a/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" +++ "b/test/slow/nvm uninstall/Running \"nvm uninstall\" with incorrect file permissions fails nicely" @@ -3,7 +3,7 @@ die () { echo $@ ; exit 1; } # Source nvm -. ../../../nvm.sh +\. ../../../nvm.sh # Version to install/uninstall NVM_TEST_VERSION=5.10.1 diff --git a/test/slow/nvm uninstall/setup_dir b/test/slow/nvm uninstall/setup_dir index f385d98..108dbe3 100755 --- a/test/slow/nvm uninstall/setup_dir +++ b/test/slow/nvm uninstall/setup_dir @@ -1,4 +1,4 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm install 0.12.7 diff --git a/test/slow/nvm uninstall/teardown_dir b/test/slow/nvm uninstall/teardown_dir index f505f21..2fad54c 100755 --- a/test/slow/nvm uninstall/teardown_dir +++ b/test/slow/nvm uninstall/teardown_dir @@ -1,5 +1,5 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh nvm uninstall 0.12.7 nvm deactivate diff --git "a/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" "b/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" index fc82a7b..6b9dbe8 100755 --- "a/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" +++ "b/test/slow/nvm use/Running \"nvm use --lts\" uses latest LTS version" @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate >/dev/null 2>&1 || die 'deactivate failed' diff --git "a/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" "b/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" index 73bdd65..13cc53b 100755 --- "a/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" +++ "b/test/slow/nvm use/Running \"nvm use --lts=foo\" uses latest \"foo\" LTS version" @@ -4,7 +4,7 @@ set -ex die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' diff --git "a/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" "b/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" index 506ff86..4e7455d 100755 --- "a/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" +++ "b/test/slow/nvm use/Running \"nvm use iojs\" uses latest io.js version" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' diff --git "a/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" "b/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" index ce84bb6..5cf8000 100755 --- "a/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" +++ "b/test/slow/nvm use/Running \"nvm use node\" uses latest stable node version" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' diff --git "a/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" "b/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" index 2416c79..799c2ac 100755 --- "a/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" +++ "b/test/slow/nvm use/Running \"nvm use v1.0.0\" uses iojs-v1.0.0 iojs version" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate 2>&1 >/dev/null || die 'deactivate failed' diff --git "a/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" "b/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" index faf9644..53f44b1 100755 --- "a/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" +++ "b/test/slow/nvm use/Running \"nvm use\" calls \"nvm_die_on_prefix\"" @@ -2,7 +2,7 @@ die () { echo $@ ; exit 1; } -. ../../../nvm.sh +\. ../../../nvm.sh nvm deactivate >/dev/null 2>&1 || die 'deactivate failed' diff --git a/test/slow/nvm use/setup_dir b/test/slow/nvm use/setup_dir index 767ab55..e917f0b 100755 --- a/test/slow/nvm use/setup_dir +++ b/test/slow/nvm use/setup_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh mkdir -p "${NVM_DIR}/.nvm_use_bak" if [ -d "${NVM_DIR}/v*" ]; then diff --git a/test/slow/nvm use/teardown_dir b/test/slow/nvm use/teardown_dir index a1543e5..947be61 100755 --- a/test/slow/nvm use/teardown_dir +++ b/test/slow/nvm use/teardown_dir @@ -1,6 +1,6 @@ #!/bin/sh -. ../../../nvm.sh +\. ../../../nvm.sh for VERSION in "0.8.7" "0.9.1" "0.10.1" "0.11.1"; do nvm uninstall "$VERSION" diff --git a/test/slow/nvm_get_latest/nvm_get_latest b/test/slow/nvm_get_latest/nvm_get_latest index 3348fd5..bb198ee 100755 --- a/test/slow/nvm_get_latest/nvm_get_latest +++ b/test/slow/nvm_get_latest/nvm_get_latest @@ -6,7 +6,7 @@ cleanup() { unset -f curl wget nvm_has } -. ../../../nvm.sh +\. ../../../nvm.sh EXPECTED_VERSION="v12.3.456" URL="https://github.com/creationix/nvm/releases/tag/$EXPECTED_VERSION" diff --git a/test/slow/nvm_get_latest/nvm_get_latest failed redirect b/test/slow/nvm_get_latest/nvm_get_latest failed redirect index cc43b53..3a6aa1d 100755 --- a/test/slow/nvm_get_latest/nvm_get_latest failed redirect +++ b/test/slow/nvm_get_latest/nvm_get_latest failed redirect @@ -6,7 +6,7 @@ cleanup() { unset -f curl wget } -. ../../../nvm.sh +\. ../../../nvm.sh curl() { return 1 diff --git a/test/sourcing/Sourcing nvm.sh should use the default if available b/test/sourcing/Sourcing nvm.sh should use the default if available index 03b2fe3..23a0dc6 100755 --- a/test/sourcing/Sourcing nvm.sh should use the default if available +++ b/test/sourcing/Sourcing nvm.sh should use the default if available @@ -4,8 +4,8 @@ die () { echo $@ ; exit 1; } echo '0.10.1' > ../../alias/default || die 'creation of default alias failed' -. ../../nvm.sh || die 'sourcing returned nonzero exit code' -. ../common.sh +\. ../../nvm.sh || die 'sourcing returned nonzero exit code' +\. ../common.sh NVM_LS_CURRENT="$(nvm ls current | strip_colors | \grep -o v0.10.1)" [ "_$NVM_LS_CURRENT" = '_v0.10.1' ] || die "'nvm ls current' did not return '-> v0.10.1', got '$NVM_LS_CURRENT'" diff --git a/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it b/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it index edc5614..08cfb93 100755 --- a/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it +++ b/test/sourcing/Sourcing nvm.sh with --install and .nvmrc should install it @@ -12,7 +12,7 @@ fi echo '0.10.2' > ../../.nvmrc || die 'creation of .nvmrc failed' -. ../../nvm.sh --install +\. ../../nvm.sh --install EXIT_CODE="$(echo $?)" echo 'sourcing complete.' diff --git a/test/sourcing/Sourcing nvm.sh with --install should install the default b/test/sourcing/Sourcing nvm.sh with --install should install the default index 3b6fbaf..3da82f7 100755 --- a/test/sourcing/Sourcing nvm.sh with --install should install the default +++ b/test/sourcing/Sourcing nvm.sh with --install should install the default @@ -1,5 +1,5 @@ #!/bin/sh -. ../common.sh +\. ../common.sh die () { echo $@ ; exit 1; } supports_source_options () { @@ -15,7 +15,7 @@ echo '0.10.2' > ../../alias/default || die 'creation of default alias failed' echo 'sourcing nvm with --install...' -. ../../nvm.sh --install +\. ../../nvm.sh --install EXIT_CODE="$(echo $?)" echo 'sourcing complete.' diff --git a/test/sourcing/Sourcing nvm.sh with --no-use should not use anything b/test/sourcing/Sourcing nvm.sh with --no-use should not use anything index c0b6533..334deda 100755 --- a/test/sourcing/Sourcing nvm.sh with --no-use should not use anything +++ b/test/sourcing/Sourcing nvm.sh with --no-use should not use anything @@ -10,7 +10,7 @@ if ! supports_source_options; then exit 0; fi -. ../../nvm.sh +\. ../../nvm.sh nvm install 4.1.0 || die 'install of v4.1.0 failed' nvm_version 4.1.0 >/dev/null 2>&1 || die "v4.1.0 not installed: $(nvm ls)" nvm deactivate || die 'nvm deactivate failed' @@ -20,7 +20,7 @@ NVM_CURRENT="$(nvm current)" nvm unload || die 'nvm unload failed' -. ../../nvm.sh --no-use +\. ../../nvm.sh --no-use EXIT_CODE="$(echo $?)" echo 'sourcing complete.' diff --git a/test/sourcing/Sourcing nvm.sh with no default should return 0 b/test/sourcing/Sourcing nvm.sh with no default should return 0 index 91e149a..d2b5f71 100755 --- a/test/sourcing/Sourcing nvm.sh with no default should return 0 +++ b/test/sourcing/Sourcing nvm.sh with no default should return 0 @@ -8,4 +8,4 @@ nvm_alias default && die '"nvm_alias default" did not fail' set -e # necessary to fail internally with a nonzero code -. ../../nvm.sh || die 'sourcing returned nonzero exit code' +\. ../../nvm.sh || die 'sourcing returned nonzero exit code' diff --git a/test/sourcing/setup b/test/sourcing/setup index 201b9c1..c87df10 100755 --- a/test/sourcing/setup +++ b/test/sourcing/setup @@ -7,7 +7,7 @@ rm -rf ../../v0.10.7 rm -rf ../../v0.9.7 rm -rf ../../v0.9.12 -. ../../nvm.sh +\. ../../nvm.sh nvm install 0.10.1 || echo >&2 'nvm install 0.10.1 failed' nvm unalias default || 'removing default alias failed' nvm unload || echo >&2 'nvm unload failed'