Skip to content

Commit

Permalink
add exit code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
oshi97 committed Jan 28, 2022
1 parent 371f566 commit 9b45071
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/run_translation_verification.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ fi
# Verify that translations are present for all languages
cd conf/i18n/translations

for po_file in *.po
do msgcmp $po_file messages.pot
done
exit_code=0
if [[ $GITHUB_REF_NAME == release/*
|| $GITHUB_REF_NAME == hotfix/*
|| $GITHUB_REF_NAME == master
|| $GITHUB_REF_NAME == support/* ]]
then
for po_file in *.po
do msgcmp $po_file messages.pot
exit_code=$(( exit_code + $? ))
done
else
echo "Skipping the verification that all translations are present"
fi

exit $exit_code
8 changes: 8 additions & 0 deletions conf/i18n/translations/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
exit_code=0

for po_file in *.po
do msgcmp $po_file messages.pot
exit_code=$(( exit_code + $? ))
done

exit $exit_code

0 comments on commit 9b45071

Please sign in to comment.