Update 99-run.sh

This commit is contained in:
Alexandre
2021-11-16 22:12:10 +01:00
committed by GitHub
parent 521809469b
commit 9d0daf346d

View File

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