CI: Fix if statement.

This commit is contained in:
Terry Geng 2020-11-01 10:08:24 +08:00
parent f94782c9d7
commit c48bba869f
No known key found for this signature in database
GPG Key ID: F982F8EA1DF720E7

View File

@ -22,7 +22,7 @@ echo "=> Check if the modifications are based on the translations on the server.
n=1
COMMON_FOUND=false
while [ $n -le 10 ]; do
while [ $n -le 20 ]; do
echo "==> Comparing server's translations with master~$n ($(git show --oneline --quiet master~$n))"
CHANGED_LANG_FILE=$(git diff --name-only master~$n | grep "lang/" || true)
if [ -z "$CHANGED_LANG_FILE" ]; then
@ -31,10 +31,10 @@ while [ $n -le 10 ]; do
else
echo "==> Modified lang files: $CHANGED_LANG_FILE"
fi
let n++
(( n++ ))
done
if [ ! $COMMON_FOUND ]; then
if (! $COMMON_FOUND); then
echo "==> CONFLICTS: Previous commits doesn't share the same translations with the server."
echo " There are unmerged translation updates on the server."
echo " Please manually update these changes or wait for the pull request"