Browse Source

[Test] "nvm alias" lts test bug fix

Peter Dave Hello 8 years ago committed by Jordan Harband
parent
commit
c6866eeb37
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
  1. 2
      test/fast/Aliases/lts/"nvm alias" should ensure LTS alias dir exists

2
test/fast/Aliases/lts/"nvm alias" should ensure LTS alias dir exists

@ -7,6 +7,8 @@ set -ex
LTS_ALIAS_PATH="$(nvm_alias_path)/lts" LTS_ALIAS_PATH="$(nvm_alias_path)/lts"
rm -rf "${LTS_ALIAS_PATH}"
die () { echo "$@" ; exit 1; } die () { echo "$@" ; exit 1; }
[ ! -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' exists and should not" [ ! -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' exists and should not"

Loading…
Cancel
Save