Don't hard fail if config.json missing

This commit is contained in:
Colin Seymour
2026-06-14 12:52:56 +00:00
parent 6d11bf974b
commit 79f52c8c92
+2 -1
View File
@@ -281,7 +281,8 @@ remove_addon_image() {
log "Ensuring TeslaMate addon builds locally..." log "Ensuring TeslaMate addon builds locally..."
if [ ! -f "$CONFIG_JSON" ]; then if [ ! -f "$CONFIG_JSON" ]; then
err "config.json not found at ${CONFIG_JSON}" warn "config.json not found at ${CONFIG_JSON} - skipping image removal"
return 0
fi fi
if ! jq -e 'has("image")' "$CONFIG_JSON" > /dev/null 2>&1; then if ! jq -e 'has("image")' "$CONFIG_JSON" > /dev/null 2>&1; then