chore: fail early in pre-compile.sh when translation file is not available

This commit is contained in:
Ivan Dyachkov 2023-12-01 16:41:56 +01:00
parent 899fc7b9b9
commit 9c30a7bbe7
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ DOWNLOAD_I18N_TRANSLATIONS=${DOWNLOAD_I18N_TRANSLATIONS:-true}
if [ "$DOWNLOAD_I18N_TRANSLATIONS" = "true" ]; then
echo "downloading i18n translation from emqx/emqx-i18n"
start=$(date +%s)
curl -L --silent --show-error \
curl -L --fail --silent --show-error \
--output "apps/emqx_dashboard/priv/desc.zh.hocon" \
"https://raw.githubusercontent.com/emqx/emqx-i18n/${I18N_REPO_BRANCH}/desc.zh.hocon"
end=$(date +%s)