chore: fail early in pre-compile.sh when translation file is not available
This commit is contained in:
parent
899fc7b9b9
commit
9c30a7bbe7
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue