Просмотр исходного кода

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

Ivan Dyachkov 2 лет назад
Родитель
Сommit
9c30a7bbe7
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      scripts/pre-compile.sh

+ 1 - 1
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)