Update 99-run.sh

This commit is contained in:
Alexandre
2021-11-17 14:40:11 +01:00
committed by GitHub
parent d52dda52a6
commit 392c4bb181

View File

@@ -20,13 +20,13 @@ fi
# Check if yaml is valid # Check if yaml is valid
#yamllint -d relaxed --no-warnings $CONFIGSOURCE &> ERROR || EXIT_CODE=$? #yamllint -d relaxed --no-warnings $CONFIGSOURCE &> ERROR || EXIT_CODE=$?
if [ $EXIT_CODE = 0 ]; then #if [ $EXIT_CODE = 0 ]; then
echo "Config file is a valid yaml" # echo "Config file is a valid yaml"
else #else
cat ERROR # cat ERROR
bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above." # bashio::log.fatal "Config file has an invalid yaml format. Please check the file in $CONFIGSOURCE. Errors list above."
bashio::exit.nok # bashio::exit.nok
fi #fi
# Create symlink # Create symlink
[ -f /data/config.yaml ] && rm /data/config.yaml [ -f /data/config.yaml ] && rm /data/config.yaml