diff --git a/.templates/90-config_yaml.sh b/.templates/90-config_yaml.sh index c92a3087d..d9a25ac83 100644 --- a/.templates/90-config_yaml.sh +++ b/.templates/90-config_yaml.sh @@ -96,7 +96,7 @@ done <"/tmpfile" # Test mode TZ=$(bashio::config "TZ") -if [ $TZ = "test" ]; then +if [ "$TZ" = "test" ]; then echo "secret mode found, launching script in /config/test.sh" cd /config || exit chmod 777 test.sh diff --git a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh index 04edb9970..20bd9e8b0 100644 --- a/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt/rootfs/etc/cont-init.d/99-run.sh @@ -67,7 +67,7 @@ echo " " # Test mode TZ=$(bashio::config "TZ") -if [ $TZ = "test" ]; then +if [ "$TZ" = "test" ]; then echo "secret mode found, launching script in /config/test.sh" cd /config || exit chmod 777 test.sh diff --git a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh index 35da77b91..29dd49554 100644 --- a/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh +++ b/enedisgateway2mqtt_dev/rootfs/etc/cont-init.d/99-run.sh @@ -66,7 +66,7 @@ bashio::log.info "Starting the app" echo " " # Test mode -if [ $TZ = "test" ]; then +if [ "$TZ" = "test" ]; then echo "secret mode found, launching script in /config/test.sh" cd /config || exit chmod 777 test.sh