From 88edb67f9c479371d70ef46100f2d1db3bb6de20 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 8 Jan 2023 19:55:06 +0100 Subject: [PATCH] Update 19-json_repair.sh --- transmission/rootfs/etc/cont-init.d/19-json_repair.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transmission/rootfs/etc/cont-init.d/19-json_repair.sh b/transmission/rootfs/etc/cont-init.d/19-json_repair.sh index 514d8d8ee..917564d76 100755 --- a/transmission/rootfs/etc/cont-init.d/19-json_repair.sh +++ b/transmission/rootfs/etc/cont-init.d/19-json_repair.sh @@ -11,7 +11,7 @@ if [ -f "${JSONTOCHECK}" ]; then # Check if json file valid or not jq . -S "${JSONTOCHECK}" &>/dev/null && ERROR=false || ERROR=true - if [ $ERROR = true ]; then + 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 cp "${JSONSOURCE}" "${JSONTOCHECK}"