From 4d5c9d93fb633086f3dfe7e3a51c3c23d1c26150 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 6 Oct 2021 01:20:42 -0400 Subject: check IP exists before trying use it --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 481382a..28fb21d 100644 --- a/Makefile +++ b/Makefile @@ -56,5 +56,6 @@ PY_PATH != $(cli) compile --show-properties | sed -ne 's/^runtime.tools.python3. MDNS_IP != getent ahostsv4 $(MDNS_NAME).local | (read ip _; echo $$ip) ota: $(BIN) + [ "$(MDNS_IP)" ] "$(PY_PATH)/python3" "$(PLAT_PATH)/tools/espota.py" -i "$(MDNS_IP)" -p "$(OTA_PORT)" --auth="$(OTA_PASS)" -f "$(BIN)" -- cgit v1.2.3