HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/.nvm/test/fast/Aliases/lts/'nvm alias' should ensure LTS alias dir exists
#!/bin/sh

set -ex

\. ../../../../nvm.sh
\. ../../../common.sh

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"

nvm alias >/dev/null 2>&1

[ -d "${LTS_ALIAS_PATH}" ] || die "'${LTS_ALIAS_PATH}' does not exist and should"