mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
Fixed variable detection.
This commit is contained in:
parent
25474b592b
commit
4ee98749bb
1 changed files with 4 additions and 4 deletions
|
@ -39,17 +39,17 @@ fi
|
|||
|
||||
log "Installing dependencies..."
|
||||
(mkdir -p node_modules &&
|
||||
cd node_modules && ls -lisa &&
|
||||
cd node_modules &&
|
||||
{ [ -d ep_etherpad-lite ] || ln -sf ../src ep_etherpad-lite; } &&
|
||||
cd ep_etherpad-lite)
|
||||
|
||||
if [[ -z NODE_ENV ]]; then
|
||||
cd src
|
||||
|
||||
if [[ -z "${NODE_ENV}" ]]; then
|
||||
log "Installing dev dependencies"
|
||||
cd src
|
||||
npm ci --no-optional --omit=optional --include=dev --lockfile-version 1 || exit 1
|
||||
else
|
||||
log "Installing production dependencies"
|
||||
cd src
|
||||
npm ci --no-optional --omit=optional --omit=dev --lockfile-version 1 --production || exit 1
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue