mirror of
https://github.com/friendica/friendica-docker-ci
synced 2024-11-25 08:44:11 +01:00
Merge pull request #5 from nupplaphil/bug/transifex
Fix "check-addons.sh" file
This commit is contained in:
commit
e30766ab28
|
@ -9,9 +9,9 @@ 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
|
||||||
echo "Nothing to update"
|
echo "\033[1mNothing to update\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -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)"
|
echo "$(git diff ./view/lang/C/messages.po)"
|
||||||
exit 1
|
exit 1
|
||||||
else
|
else
|
||||||
echo "Nothing to update"
|
echo "\033[1mNothing to update\033[0m"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue