2016-06-27 06:11:37 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
2016-11-04 13:15:18 +08:00
|
|
|
\. ../../../../nvm.sh
|
|
|
|
\. ../../../common.sh
|
2016-06-27 06:11:37 +08:00
|
|
|
|
|
|
|
LTS_ALIAS_PATH="$(nvm_alias_path)/lts"
|
|
|
|
|
2016-11-07 03:34:36 +08:00
|
|
|
die () { echo "$@" ; exit 1; }
|
2016-06-27 06:11:37 +08:00
|
|
|
|
|
|
|
[ ! -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' exists and should not"
|
|
|
|
|
|
|
|
nvm alias >/dev/null 2>&1
|
|
|
|
|
|
|
|
[ -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' does not exist and should"
|