From 52632d834ae47d2afa8c8abfdad8e12d2e8894cf Mon Sep 17 00:00:00 2001 From: Alexandre Date: Sun, 31 Oct 2021 14:39:50 +0100 Subject: [PATCH] exit 0 --- 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 8275cea2a..d4b77671e 100644 --- a/transmission/rootfs/etc/cont-init.d/19-json_repair.sh +++ b/transmission/rootfs/etc/cont-init.d/19-json_repair.sh @@ -9,7 +9,7 @@ if [ -f ${JSONTOCHECK} ]; then echo "Checking settings.json format" # Check if json file valid or not - jq -reM '""' <<<${JSONTOCHECK} 1>/dev/null || (bashio::log.fatal "Settings.json structure is abnormal, restoring options from scratch" && cp ${JSONSOURCE} ${JSONTOCHECK}) + jq -reM '""' <<<${JSONTOCHECK} 1>/dev/null || (bashio::log.fatal "Settings.json structure is abnormal, restoring options from scratch" && cp ${JSONSOURCE} ${JSONTOCHECK} && exit 0) # Get the default keys from the original file mapfile -t arr < <(jq -r 'keys[]' ${JSONSOURCE})