overleaf/bin/install-services

17 lines
269 B
Text
Raw Normal View History

#! env bash
set -ex
2017-09-05 10:26:40 -04:00
grep 'name:' config/services.js | \
sed 's/.*name: "\(.*\)",/\1/' | \
while read service
do
pushd $service
echo "Installing Node from .nvmrc"
nvm install && nvm use
echo "Installing service $service"
npm install --quiet
popd
done