From c09e638fc324f266f61fad453daca0b72f91889f Mon Sep 17 00:00:00 2001 From: muxator Date: Wed, 29 Aug 2018 21:45:33 +0200 Subject: [PATCH] installDeps.sh: don't nuke all installed plugins on update This is a modification of PR #3474 by rohieb . When this script is run after an update, and something fails during the npm run, the installed plugins were deleted, too. In this version what gets deleted is only the directory that contains the direct dependencies of the core Etherpad, ie: node_modules/ep_etherpad-lite/node_modules --- bin/installDeps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/installDeps.sh b/bin/installDeps.sh index dd705239..b86e7aa9 100755 --- a/bin/installDeps.sh +++ b/bin/installDeps.sh @@ -116,7 +116,7 @@ echo "Ensure that all dependencies are up to date... If this is the first time cd ep_etherpad-lite npm install --no-save --loglevel warn ) || { - rm -rf node_modules + rm -rf src/node_modules exit 1 }