diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-08-23 09:22:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 09:22:02 +0300 |
commit | 823b8320cdb14e358395d10cdf4ee265cf755f31 (patch) | |
tree | 645361b383be388e27907e0a858ee96bad6010ff | |
parent | 1ca21afb57274a6db31f16ac99e458c25453b7ff (diff) | |
parent | 56eb22f8cc09442f4842765c5f9596f747e74699 (diff) |
Merge pull request #403 from nextcloud/bugfix/noid/continue-when-grep-failstranslations-app-58
Continune when the grep fails
-rwxr-xr-x | translations-app/handleAppTranslations.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/translations-app/handleAppTranslations.sh b/translations-app/handleAppTranslations.sh index cdde2ef..175d873 100755 --- a/translations-app/handleAppTranslations.sh +++ b/translations-app/handleAppTranslations.sh @@ -16,8 +16,11 @@ if [ ! -f '/app/.tx/config' ]; then exit 1 fi +# We actually want this command to fail +set +e grep 'MYAPP' '/app/.tx/config' INVALID_CONFIG=$? +set -e if [ "$INVALID_CONFIG" = "0" ]; then echo "Invalid transifex configuration file .tx/config (translating MYAPP instead of real value)" exit 2 |