From: Felix Ableitner Date: Wed, 21 Apr 2021 11:57:42 +0000 (+0200) Subject: use set -e in all bash scripts X-Git-Url: http://these/git/%7B%24%7B%60data:application/static/git-logo.png?a=commitdiff_plain;h=08b1c6b4d7ef479e5398da7f8d8bcbae78a2a05a;p=lemmy-ui.git use set -e in all bash scripts --- diff --git a/accessibility_tests.sh b/accessibility_tests.sh index 0161e6d..7bf0c8f 100755 --- a/accessibility_tests.sh +++ b/accessibility_tests.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e ignores="WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail" base_url="http://192.168.50.60:1234" diff --git a/deploy.sh b/deploy.sh index 58d1d7f..57aa818 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e new_tag="$1" diff --git a/test_deploy.sh b/test_deploy.sh index 7cf2e3c..db2aed0 100755 --- a/test_deploy.sh +++ b/test_deploy.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e sudo docker build . --tag dessalines/lemmy-ui:dev sudo docker push dessalines/lemmy-ui:dev diff --git a/update_translations.sh b/update_translations.sh index c5cc1b4..677eee9 100755 --- a/update_translations.sh +++ b/update_translations.sh @@ -1,9 +1,11 @@ #!/bin/bash -pushd ../lemmy-translations || exit +set -e + +pushd ../lemmy-translations git fetch weblate git merge weblate/main git push -popd || exit +popd # look for unused translations for langfile in lemmy-translations/translations/*.json; do