Skip to content
Myr

Install nvm-exec as well when installing via script.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #553.

authored by Jordan Harband · committed by Jordan Harband · parent 5904d41 · Browse files · 2 files+16 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+16 added−1 removed

  • tests:+3 added−0 removed
  • other:+13 added−1 removed

2 files+16 added−1 removed

modified:test/install_script/nvm_source+3 added
15 unmodified lines
1617# nvm_source with script parameter returns the location of nvm.sh18echo $(nvm_source "script") | grep "nvm.sh$" > /dev/null || die "nvm_source \"script\" should return the location of nvm.sh"1920# nvm_source with script-nvm-exec parameter returns the location of nvm-exec21echo $(nvm_source "script-nvm-exec") | grep "nvm-exec$" > /dev/null || die "nvm_source \"script-nvm-exec\" should return the location of nvm.sh"2223# nvm_source with any other parameter errors out and exits24nvm_source "anything" 2> /dev/null && die "nvm_source with invalid parameter should exit"25out=$(nvm_source "anything" 2>&1 >/dev/null) || : #Saving the process here26[ -z "$out" ] && die "nvm_source with invalid parameter should error out"
14 unmodified lines
modified:install.sh+13 added-1 removed