mirror of
https://github.com/lildude/ha-addon-teslamate.git
synced 2026-10-13 21:19:16 -04:00
Don't hard fail if config.json missing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user