mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 16:36:15 -04:00
installDeps.sh: Don't nuke src/node_modules
on error
Rationale: * Clearing out `src/node_modules` is unlikely to bring future success. * If there is an error, it's better to leave the filesystem alone so that the user can investigate the cause. * Deleting the directory on error is a surprising behavior.
This commit is contained in:
parent
2ba85dba0e
commit
4a09000ca6
1 changed files with 1 additions and 4 deletions
|
@ -43,10 +43,7 @@ log "Installing dependencies..."
|
|||
{ [ -d ep_etherpad-lite ] || ln -sf ../src ep_etherpad-lite; } &&
|
||||
cd ep_etherpad-lite &&
|
||||
npm ci --no-optional
|
||||
) || {
|
||||
rm -rf src/node_modules
|
||||
exit 1
|
||||
}
|
||||
) || exit 1
|
||||
|
||||
# Remove all minified data to force node creating it new
|
||||
log "Clearing minified cache..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue