mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
24 lines
526 B
Bash
24 lines
526 B
Bash
#! env bash
|
|
|
|
[ -z "`type -t nvm`" ] && cat <<EOF
|
|
|
|
==========================================================
|
|
== NVM not installed, you should consider installing it ==
|
|
==========================================================
|
|
|
|
EOF
|
|
|
|
|
|
grep 'name:' config/services.js | \
|
|
sed 's/.*name: "\(.*\)",/\1/' | \
|
|
while read service
|
|
do
|
|
pushd $service
|
|
echo "Installing Service $service"
|
|
echo ' installing Node'
|
|
type -t nvm && nvm install
|
|
type -t nvm && nvm use
|
|
echo ' installing Dependencies'
|
|
npm install
|
|
popd
|
|
done
|