[Test] "nvm alias" lts test bug fix

This commit is contained in:
Peter Dave Hello authored and Jordan Harband committed 2017-04-02 14:34:04 +08:00
1 parent 7bd7a35cb2
commit c6866eeb37
1 file changed
+2
@@ -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"