Don't npm update if no ~/.npmbin

This commit is contained in:
Thomas Forgione 2019-03-21 17:56:49 +01:00
parent e926df21ac
commit 688cc1a5fb
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 4 additions and 0 deletions

View File

@ -196,6 +196,10 @@ update-npm() {
return
fi
if [ ! -d ~/.npmbin ]; then
return
fi
start_npm_update=`date +%s`
echo "\033[32;1m=== Updating node packages ===\033[0m"