[Tests] Source nvm.sh before defining FILE

This commit is contained in:
Magnus Markling
2020-03-19 12:13:29 +01:00
committed by Jordan Harband
parent f607f2f783
commit b02617028f

View File

@@ -1,8 +1,9 @@
#!/bin/sh
FILE="$NVM_DIR/default-packages"
\. ../../../nvm.sh
FILE="$NVM_DIR/default-packages"
die () { echo "$@" ; cleanup ; exit 1; }
setup () {
if [ -f $FILE ]; then