diff options
author | Steven <steven.vasilogianis@gmail.com> | 2021-10-06 01:20:42 -0400 |
---|---|---|
committer | Steven <steven.vasilogianis@gmail.com> | 2021-10-06 01:20:42 -0400 |
commit | 4d5c9d93fb633086f3dfe7e3a51c3c23d1c26150 (patch) | |
tree | 6b0192b2c1c3e568bfa4c1c251ee6d18773b9c45 | |
parent | c153fc0d8bf2f2e57b75bfde81539305f6fa0c50 (diff) |
check IP exists before trying use it
-rw-r--r-- | Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -56,5 +56,6 @@ PY_PATH != $(cli) compile --show-properties | sed -ne 's/^runtime.tools.python3. | |||
56 | MDNS_IP != getent ahostsv4 $(MDNS_NAME).local | (read ip _; echo $$ip) | 56 | MDNS_IP != getent ahostsv4 $(MDNS_NAME).local | (read ip _; echo $$ip) |
57 | 57 | ||
58 | ota: $(BIN) | 58 | ota: $(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 | ||