Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
CI: Fix if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryGeng committed Nov 1, 2020
1 parent f94782c commit c48bba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/update_translation_to_server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit c48bba8

Please sign in to comment.