From a920192a37708f3f1861f98b4edf8686e270a1ff Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 18 Nov 2021 06:48:03 +0100 Subject: [PATCH] Update 99-run.sh --- enedisgateway2mqtt/rootfs/scripts/99-run.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/enedisgateway2mqtt/rootfs/scripts/99-run.sh b/enedisgateway2mqtt/rootfs/scripts/99-run.sh index 2f59c0e63..132ef8500 100644 --- a/enedisgateway2mqtt/rootfs/scripts/99-run.sh +++ b/enedisgateway2mqtt/rootfs/scripts/99-run.sh @@ -25,14 +25,14 @@ if [ -f $CONFIGSOURCE ]; then bashio::log.info "Using config file found in $CONFIGSOURCE" # Check if yaml is valid - yamllint -d relaxed --no-warnings $CONFIGSOURCE &> ERROR || EXIT_CODE=$? - if [ $EXIT_CODE = 0 ]; then - echo "Config file is a valid yaml" - else - cat ERROR - bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above." - bashio::exit.nok - fi +# yamllint -d relaxed --no-warnings $CONFIGSOURCE &> ERROR || EXIT_CODE=$? +# if [ $EXIT_CODE = 0 ]; then + # echo "Config file is a valid yaml" + # else +# cat ERROR +# bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above." +# bashio::exit.nok +# fi else # Create symlink for addon to create config touch ${CONFIGSOURCE}