use set -e in all bash scripts

This commit is contained in:
Felix Ableitner 2021-04-21 13:57:42 +02:00
parent 4114e4000b
commit 08b1c6b4d7
4 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -e
ignores="WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail" ignores="WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail"
base_url="http://192.168.50.60:1234" base_url="http://192.168.50.60:1234"

View file

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -e
new_tag="$1" new_tag="$1"

View file

@ -1,4 +1,5 @@
#!/bin/bash #!/bin/bash
set -e
sudo docker build . --tag dessalines/lemmy-ui:dev sudo docker build . --tag dessalines/lemmy-ui:dev
sudo docker push dessalines/lemmy-ui:dev sudo docker push dessalines/lemmy-ui:dev

View file

@ -1,9 +1,11 @@
#!/bin/bash #!/bin/bash
pushd ../lemmy-translations || exit set -e
pushd ../lemmy-translations
git fetch weblate git fetch weblate
git merge weblate/main git merge weblate/main
git push git push
popd || exit popd
# look for unused translations # look for unused translations
for langfile in lemmy-translations/translations/*.json; do for langfile in lemmy-translations/translations/*.json; do