From 4bc9337a0930072f9af87024fab52b50190d7b94 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 22 May 2021 20:08:29 +0200 Subject: [PATCH 1/2] Fix "check-addons.sh" file --- transifex/check-addons.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transifex/check-addons.sh b/transifex/check-addons.sh index 9a023b0..280d874 100755 --- a/transifex/check-addons.sh +++ b/transifex/check-addons.sh @@ -9,7 +9,7 @@ cd $ADDON_DIR # Skip first 4 lines in possible diff, because they're header # Skip all lines of the git diff starting with "@@" or comments or starting "POT-Creation-Date" -if [[ $(git diff -U0 **/messages.po | grep -vE '^(@@|\-"POT-Creation-Date|\+"POT-Creation-Date|\-#|\+#)' | wc -l) -gt 4 ]]; then +if [[ $(git diff -U0 **/messages.po | grep -vE '^(@@|\-"POT-Creation-Date|\+"POT-Creation-Date|\-#|\+#|\-\-\-|\+\+\+|index\ |diff\ \-\-git)' | wc -l) -gt 0 ]]; then echo "$(git diff **/messages.po)" exit 1 else From 05b5f8d7296db47f6b6e0024324b39d22b024360 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sat, 22 May 2021 22:55:44 +0200 Subject: [PATCH 2/2] Bold formatting output --- transifex/check-addons.sh | 2 +- transifex/check-messages.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/transifex/check-addons.sh b/transifex/check-addons.sh index 280d874..d7798bf 100755 --- a/transifex/check-addons.sh +++ b/transifex/check-addons.sh @@ -13,5 +13,5 @@ if [[ $(git diff -U0 **/messages.po | grep -vE '^(@@|\-"POT-Creation-Date|\+"POT echo "$(git diff **/messages.po)" exit 1 else - echo "Nothing to update" + echo "\033[1mNothing to update\033[0m" fi diff --git a/transifex/check-messages.sh b/transifex/check-messages.sh index 2891e78..551b8c5 100755 --- a/transifex/check-messages.sh +++ b/transifex/check-messages.sh @@ -9,5 +9,5 @@ if [[ $(git diff -U0 ./view/lang/C/messages.po | grep -vE '^(@@|\-"POT-Creation- echo "$(git diff ./view/lang/C/messages.po)" exit 1 else - echo "Nothing to update" + echo "\033[1mNothing to update\033[0m" fi