From 6af780dce3b7e907dd70894c425a3f00a37f9cfd Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 16 Nov 2021 22:31:55 +0100 Subject: [PATCH] Update 99-run.sh --- gazpar2mqtt/rootfs/scripts/99-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gazpar2mqtt/rootfs/scripts/99-run.sh b/gazpar2mqtt/rootfs/scripts/99-run.sh index 4ba6610d5..0754ea3d3 100644 --- a/gazpar2mqtt/rootfs/scripts/99-run.sh +++ b/gazpar2mqtt/rootfs/scripts/99-run.sh @@ -21,8 +21,8 @@ else fi # Check if yaml is valid -yamllint -d relaxed --no-warnings $CONFIGSOURCE &>ERROR -if [ $? = 0 ]; then +yamllint -d relaxed --no-warnings $CONFIGSOURCE &> ERROR || 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 :"