Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/docker-ci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2022-08-23 09:22:02 +0300
committerGitHub <noreply@github.com>2022-08-23 09:22:02 +0300
commit823b8320cdb14e358395d10cdf4ee265cf755f31 (patch)
tree645361b383be388e27907e0a858ee96bad6010ff
parent1ca21afb57274a6db31f16ac99e458c25453b7ff (diff)
parent56eb22f8cc09442f4842765c5f9596f747e74699 (diff)
Merge pull request #403 from nextcloud/bugfix/noid/continue-when-grep-failstranslations-app-58
Continune when the grep fails
-rwxr-xr-xtranslations-app/handleAppTranslations.sh3
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