build.sh: Fix double ||

This commit is contained in:
Haelwenn (lanodan) Monnier 2019-10-01 09:52:30 +02:00
parent e8d10394ed
commit 046df01415
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
2 changed files with 5 additions and 1 deletions

View file

@ -1,4 +1,8 @@
# MastoFE Changelog
Note: This file is to be cleared after each rebase on upstream
Fixed
-----
- build.sh: Double `||` before `die "…"` when copying sw.js
Based on 65db9df011a3e13efa79f4e56343aa69bdad7716 2019-09-30T23:29:55Z

View file

@ -13,7 +13,7 @@ yarn install -D || die "Installing dependencies via yarn failed"
rm -rf public/packs public/assets
env -i "PATH=$PATH" npm run build || die "Building the frontend failed"
cp public/assets/sw.js "${TARGET}/${static_dir}/sw.js" || || die "installing sw.js (service-worker) failed"
cp public/assets/sw.js "${TARGET}/${static_dir}/sw.js" || die "installing sw.js (service-worker) failed"
rm -rf "${TARGET}/${static_dir}/packs" || die "Removing old assets in priv/static/packs failed"
cp -r public/packs "${TARGET}/${static_dir}/packs" || die "Copying new assets in priv/static/packs failed"
rm -rf "${TARGET}/${static_dir}/emoji/*.svg" || die "Removing the old emoji assets failed"