From 090f40206b90ce05199d7c50e366bdfce5ab8b82 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 9 Apr 2021 14:51:56 +0200 Subject: [PATCH] Compare old and new .pot both ways. Apparently msgcmp's return status (not even documented) only yields a one way comparison. --- check-translations.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-translations.sh b/check-translations.sh index 6a55b5ef7..46ec3ec6c 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -57,7 +57,7 @@ if [ x"$mode" = x"pot" ]; then echo "$name" done | sort -u } | xgettext -LC -k_ -f- --from-code utf-8 -F -o common.pot.new >&2 - if msgcmp -N --use-untranslated common.pot common.pot.new; then + if msgcmp -N --use-untranslated common.pot common.pot.new && msgcmp -N --use-untranslated common.pot.new common.pot; then echo "No contentful changes to common.pot - OK." rm -f common.pot.new else -- 2.39.2