From 9c30a7bbe753fc0880b23c156fc41cc3dd5cd050 Mon Sep 17 00:00:00 2001 From: Ivan Dyachkov Date: Fri, 1 Dec 2023 16:41:56 +0100 Subject: [PATCH] chore: fail early in pre-compile.sh when translation file is not available --- scripts/pre-compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pre-compile.sh b/scripts/pre-compile.sh index 71b42d003..12506162c 100755 --- a/scripts/pre-compile.sh +++ b/scripts/pre-compile.sh @@ -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)