This commit is contained in:
Alexandre
2021-10-31 15:05:59 +01:00
parent d03db87734
commit 81fd5b3696

View File

@@ -9,7 +9,7 @@ if [ -f ${JSONTOCHECK} ]; then
echo "Checking settings.json format"
# Check if json file valid or not
jq . -S ${JSONTOCHECK} || ERROR=true
jq . -S ${JSONTOCHECK} &>/dev/null && ERROR=false || ERROR=true
if [ $ERROR = true ]; then
bashio::log.fatal "Settings.json structure is abnormal, restoring options from scratch. Your old file is renamed as settings.json_old"
mv ${JSONSOURCE} ${JSONSOURCE}_old