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 fi
# Check if yaml is valid # Check if yaml is valid
yamllint -s -d relaxed --no-warnings $CONFIGSOURCE || true yamllint -d relaxed --no-warnings $CONFIGSOURCE || EXIT_CODE=$?
if [ $? = 0 ]; then if [ $EXIT_CODE = 0 ]; then
echo "Config file is a valid yaml" echo "Config file is a valid yaml"
else else
bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list :" bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list :"