[Tests] Source nvm.sh before defining FILE

Magnus Markling 2020-03-19 12:13:29 +01:00 committed by Jordan Harband
parent f607f2f783
commit b02617028f
No known key found for this signature in database
GPG Key ID: 9F6A681E35EF8B56
1 changed files with 2 additions and 1 deletions

View File

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