Fix "check-addons.sh" file

This commit is contained in:
Philipp Holzer 2021-05-22 20:08:29 +02:00
parent 61f6c1a995
commit 4bc9337a09
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD

View file

@ -9,7 +9,7 @@ cd $ADDON_DIR
# Skip first 4 lines in possible diff, because they're header # 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" # 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)" echo "$(git diff **/messages.po)"
exit 1 exit 1
else else