Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
sync-translations: Handle the case of no *.mo files.
Alex Vandivere1b5defd2d9f
diff --git a/tools/i18n/sync-translations b/tools/i18n/sync-translationsindex 419de4e882f..fad03529d14 100755--- a/tools/i18n/sync-translations+++ b/tools/i18n/sync-translations@@ -26,10 +26,10 @@ if git rev-parse --verify --quiet "origin/$local_branch" >/dev/null; thenfigit checkout -b "$local_branch" "upstream/$branch"-# Clear out local `.mo` files which cause locale/*/LC_MESSAGES/+# Clear out local any `.mo` files, which cause locale/*/LC_MESSAGES/# directories to not be empty when their .po files vanish, so git# doesn't remove the directory.-rm locale/*/LC_MESSAGES/*.mo+rm locale/*/LC_MESSAGES/*.mo || truewlc lock "zulip/frontend$suffix"wlc lock "zulip/django$suffix"