Update 01-custom_script.sh

This commit is contained in:
Alexandre
2024-01-05 07:15:42 +01:00
committed by GitHub
parent 483684510f
commit c35a79d2d9

View File

@@ -28,7 +28,7 @@ bashio::log.green "Wiki here : github.com/alexbelgium/hassio-addons/wiki/Add-ons
# Download template if no script found and exit
if [ ! -f "$CONFIGLOCATION/${slug}".sh ]; then
TEMPLATESOURCE="https://raw.githubusercontent.com/alexbelgium/hassio-addons/master/.templates/script.template"
curl -f -L -s -S "$TEMPLATESOURCE" --output "$CONFIGLOCATION/${slug}".sh
curl -f -L -s -S "$TEMPLATESOURCE" --output "$CONFIGLOCATION/${slug}".sh || true
exit 0
fi