Update 99-run.sh

This commit is contained in:
Alexandre
2021-11-16 22:31:55 +01:00
committed by GitHub
parent 184a93cc70
commit 6af780dce3

View File

@@ -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 :"