check for nvm presence before using, survive abscence

Esse commit está contido em:
Shane Kilkelly
2017-09-04 15:40:27 +01:00
commit bdbf2b3e71
+6 -6
Ver Arquivo
@@ -4,12 +4,12 @@ grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
while read service
do
pushd $service &&
echo "Installing Service $service" &&
echo ' installing Node' &&
nvm install &&
nvm use &&
echo ' installing Dependencies' &&
pushd $service
echo "Installing Service $service"
echo ' installing Node'
type nvm && nvm install
type nvm && nvm use
echo ' installing Dependencies'
npm install
popd
done