[Test] "nvm alias" lts test bug fix

Peter Dave Hello 2017-04-02 14:34:04 +08:00 committed by Jordan Harband
parent 7bd7a35cb2
commit c6866eeb37
No known key found for this signature in database
GPG Key ID: 64A196AEE0916D55
1 changed files with 2 additions and 0 deletions

View File

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