Use set -e in Bash scripts (#3791)

This commit is contained in:
Manish Jethani 2021-08-01 03:04:25 +05:30 committed by GitHub
parent 43b7cc37e0
commit be68a6b5b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 23 additions and 1 deletions

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
DES=$1 DES=$1
bash ./tools/make-assets.sh $DES bash ./tools/make-assets.sh $DES

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
echo "*** uBlock: Importing from Crowdin archive" echo "*** uBlock: Importing from Crowdin archive"
SRC=~/Downloads/crowdin SRC=~/Downloads/crowdin

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
DES=$1/assets DES=$1/assets
echo "*** Packaging assets in $DES... " echo "*** Packaging assets in $DES... "

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
DES=dist/build/uBlock0.browser DES=dist/build/uBlock0.browser
mkdir -p $DES/js mkdir -p $DES/js

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
echo "*** uBlock0.chromium: Creating web store package" echo "*** uBlock0.chromium: Creating web store package"
DES=dist/build/uBlock0.chromium DES=dist/build/uBlock0.chromium

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
echo "*** uBlock: Cleaning." echo "*** uBlock: Cleaning."
rm -R dist/build rm -Rf dist/build
echo "*** uBlock: Cleaned." echo "*** uBlock: Cleaned."

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
echo "*** uBlock0.firefox: Creating web store package" echo "*** uBlock0.firefox: Creating web store package"
BLDIR=dist/build BLDIR=dist/build

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
DES=dist/build/uBlock0.nodejs DES=dist/build/uBlock0.nodejs
mkdir -p $DES/js mkdir -p $DES/js

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
echo "*** uBlock0.opera: Creating web store package" echo "*** uBlock0.opera: Creating web store package"
DES=dist/build/uBlock0.opera DES=dist/build/uBlock0.opera

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
echo "*** uBlock0.thunderbird: Creating web store package" echo "*** uBlock0.thunderbird: Creating web store package"
BLDIR=dist/build BLDIR=dist/build

View file

@ -2,6 +2,8 @@
# #
# This script assumes a linux environment # This script assumes a linux environment
set -e
echo "*** Update submodules" echo "*** Update submodules"
git submodule update --remote git submodule update --remote