From 9d0daf346d26cbd2d93e4f86eae7380a262fd8ba Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 16 Nov 2021 22:12:10 +0100 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt_test/rootfs/scripts/99-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh b/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh index 19cd259af..d74216817 100644 --- a/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt_test/rootfs/scripts/99-run.sh @@ -19,8 +19,8 @@ else fi # Check if yaml is valid -yamllint -s -d relaxed --no-warnings $CONFIGSOURCE || true -if [ $? = 0 ]; then +yamllint -d relaxed --no-warnings $CONFIGSOURCE || EXIT_CODE=$? +if [ $EXIT_CODE = 0 ]; then echo "Config file is a valid yaml" else bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list :"