Prechádzať zdrojové kódy

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

Ivan Dyachkov 2 rokov pred
rodič
commit
9c30a7bbe7
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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
 if [ "$DOWNLOAD_I18N_TRANSLATIONS" = "true" ]; then
   echo "downloading i18n translation from emqx/emqx-i18n"
   echo "downloading i18n translation from emqx/emqx-i18n"
   start=$(date +%s)
   start=$(date +%s)
-  curl -L --silent --show-error \
+  curl -L --fail --silent --show-error \
        --output "apps/emqx_dashboard/priv/desc.zh.hocon" \
        --output "apps/emqx_dashboard/priv/desc.zh.hocon" \
        "https://raw.githubusercontent.com/emqx/emqx-i18n/${I18N_REPO_BRANCH}/desc.zh.hocon"
        "https://raw.githubusercontent.com/emqx/emqx-i18n/${I18N_REPO_BRANCH}/desc.zh.hocon"
   end=$(date +%s)
   end=$(date +%s)