Browse Source

Compare shell variable contents with a sentinel.

master
Jordan Harband 11 years ago
parent
commit
db0051753a
  1. 4
      install.sh

4
install.sh

@ -76,14 +76,14 @@ if [ -z "$METHOD" ]; then @@ -76,14 +76,14 @@ if [ -z "$METHOD" ]; then
exit 1
fi
else
if [ "$METHOD" = "git" ]; then
if [ "~$METHOD" = "~git" ]; then
if ! nvm_has "git"; then
echo >&2 "You need git to install nvm"
exit 1
fi
install_nvm_from_git
fi
if [ "$METHOD" = "script" ]; then
if [ "~$METHOD" = "~script" ]; then
if ! nvm_has "nvm_download"; then
echo >&2 "You need curl or wget to install nvm"
exit 1

Loading…
Cancel
Save