[Tests] fix shebangs
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Jordan Harband · committed by Jordan Harband · parent ec54c92 · Browse files · 11 files·+5 added−15 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
11 files+5 added−15 removed
- tests:+5 added−15 removed
Provenance
- Commit
91c77c6- Tree
254f31d- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
ec54c92
11 files changed+5 added−15 removed
modified:test/fast/Listing paths/Running "nvm which foo" should return a nonzero exit code when not found+1 added-1 removed
1- #!/bin/sh1+#!/bin/sh2 3 . ../../../nvm.sh4 5 nvm which nonexistent_version1 unmodified linemodified:test/fast/Listing versions/Running "nvm ls 0.0.2" should display only version 0.0.2.-1 removed
16 unmodified lines17 nvm ls 0.0.2 | grep 'v0.0.20' > /dev/null18 if [ $? -eq 0 ]; then19 die '"nvm ls 0.0.2" contained v0.0.20'20 fi21-modified:test/fast/Listing versions/Running "nvm ls foo" should return a nonzero exit code when not found+1 added-2 removed
1- #!/bin/sh1+#!/bin/sh2 3 . ../../../nvm.sh4 5 nvm ls nonexistent_version6 [ "$?" = "3" ]7-modified:test/fast/Listing versions/Running "nvm ls io" should return NA+1 added-2 removed
1- #!/bin/sh1+#!/bin/sh2 3 . ../../../nvm.sh4 5 nvm ls io6 [ "$?" = "3" ]7-modified:test/fast/Listing versions/Running "nvm ls node_" should return a nonzero exit code when not found+1 added-2 removed
1- #!/bin/sh1+#!/bin/sh2 3 . ../../../nvm.sh4 5 nvm ls node_6 [ "$?" = "3" ]7-modified:test/fast/Listing versions/Running "nvm ls stable" and "nvm ls unstable" should return the appropriate implicit alias+1 added-2 removed
1- #!/bin/sh1+#!/bin/sh2 3 . ../../../nvm.sh4 5 die () { echo $@ ; exit 1; }19 unmodified lines25 nvm ls stable | \grep -v "$STABLE_VERSION" >/dev/null \26 || die "'nvm ls stable' contained $STABLE_VERSION instead of v0.1.2"27 nvm ls stable | \grep v0.1.2 >/dev/null \28 || die "'nvm ls stable' did not contain v0.1.2"29-modified:test/fast/Listing versions/Running "nvm ls system" should include "system" when appropriate-1 removed
16 unmodified lines17 18 nvm_has_system_node() { return 1; }19 nvm ls system | grep system 2>&1 > /dev/null20 [ $? -ne 0 ] || die '"nvm ls system" contained "system" when system node is not present'21-modified:test/fast/Listing versions/Running "nvm ls" should filter out "versions"-1 removed
6 unmodified lines7 . ../../../nvm.sh8 9 [ -z "$(nvm ls | \grep 'versions')" ]10 # The result should contain only the appropriate version numbers.11-modified:test/fast/Listing versions/Running "nvm ls" should include "system" when appropriate-1 removed
16 unmodified lines17 18 nvm_has_system_node() { return 1; }19 nvm ls | grep system 2>&1 > /dev/null20 [ $? -ne 0 ] || die '"nvm ls" contained "system" when system node is not present'21-modified:test/fast/Listing versions/Running "nvm ls" should list versions in the "versions" directory-1 removed
7 unmodified lines8 . ../../../nvm.sh9 10 nvm ls 0.12 | grep v0.12.1 || die '"nvm ls" did not list a version in the versions/ directory'11 nvm ls 0.1 | grep v0.1.3 || die '"nvm ls" did not list a version not in the versions/ directory'12-modified:test/fast/Listing versions/Running "nvm ls" with node-like versioning vx.x.x should only list a matched version-1 removed
6 unmodified lines7 nvm ls v0.1 | grep v0.1.2 &&8 nvm ls v0.1.2 | grep v0.1.2 &&9 nvm ls v0.1. | grep v0.1.2 &&10 nvm ls v0.1.1 | grep N/A11-