[New] add support for $NVM_DIR/default-packages file

This commit is contained in:
Weston Ganger
2017-03-28 09:37:14 -07:00
committed by Jordan Harband
parent dc5dfe3bc1
commit 7f3145bc98
7 changed files with 186 additions and 6 deletions

View File

@@ -10,7 +10,9 @@ die () { echo "$@" ; cleanup ; exit 1; }
typeset -f | awk '/ \(\) $/ && !/^main / {print $1}' > "${BEFORE}"
set +e # TODO: fix
\. ../../nvm.sh
set -e
type nvm > /dev/null 2>&1 || die "nvm not loaded"