overleaf/bin/install-services

16 lines
293 B
Text
Raw Normal View History

#! env bash
grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
while read service
do
pushd $service &&
2017-07-31 08:36:37 -04:00
echo "Installing Service $service" &&
echo ' installing Node' &&
nvm install &&
nvm use &&
2017-07-31 08:36:37 -04:00
echo ' installing Dependencies' &&
npm install
popd
done