summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven <steven.vasilogianis@gmail.com>2021-10-06 01:20:42 -0400
committerSteven <steven.vasilogianis@gmail.com>2021-10-06 01:20:42 -0400
commit4d5c9d93fb633086f3dfe7e3a51c3c23d1c26150 (patch)
tree6b0192b2c1c3e568bfa4c1c251ee6d18773b9c45
parentc153fc0d8bf2f2e57b75bfde81539305f6fa0c50 (diff)
check IP exists before trying use it
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
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.
56MDNS_IP != getent ahostsv4 $(MDNS_NAME).local | (read ip _; echo $$ip) 56MDNS_IP != getent ahostsv4 $(MDNS_NAME).local | (read ip _; echo $$ip)
57 57
58ota: $(BIN) 58ota: $(BIN)
59 [ "$(MDNS_IP)" ]
59 "$(PY_PATH)/python3" "$(PLAT_PATH)/tools/espota.py" -i "$(MDNS_IP)" -p "$(OTA_PORT)" --auth="$(OTA_PASS)" -f "$(BIN)" 60 "$(PY_PATH)/python3" "$(PLAT_PATH)/tools/espota.py" -i "$(MDNS_IP)" -p "$(OTA_PORT)" --auth="$(OTA_PASS)" -f "$(BIN)"
60 61