installDeps.sh: Handle errors

pull/5170/head
Richard Hansen 2021-09-05 19:36:05 -04:00
parent 258b8366e2
commit 2ba85dba0e
1 changed files with 4 additions and 4 deletions

View File

@ -38,10 +38,10 @@ fi
log "Installing dependencies..."
(
mkdir -p node_modules
cd node_modules
[ -d ep_etherpad-lite ] || ln -sf ../src ep_etherpad-lite
cd ep_etherpad-lite
mkdir -p node_modules &&
cd node_modules &&
{ [ -d ep_etherpad-lite ] || ln -sf ../src ep_etherpad-lite; } &&
cd ep_etherpad-lite &&
npm ci --no-optional
) || {
rm -rf src/node_modules