diff --git a/.templates/ha_autoapps.sh b/.templates/ha_autoapps.sh index 0a062149c..11c62e266 100755 --- a/.templates/ha_autoapps.sh +++ b/.templates/ha_autoapps.sh @@ -20,7 +20,10 @@ if ! command -v curl >/dev/null 2>/dev/null; then fi # Call apps installer script if needed -curl -f -L -s -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automatic_packages.sh" --output /ha_automatic_packages.sh +if ! curl -f -L -S "https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/ha_automatic_packages.sh" --output /ha_automatic_packages.sh; then + echo "Failed to download the file" >&2 + exit 1 +fi chmod 777 /ha_automatic_packages.sh eval /./ha_automatic_packages.sh "${PACKAGES:-}"