From bd93b1c0a544130ef2bad63067643a13ff51124a Mon Sep 17 00:00:00 2001 From: frederik Date: Wed, 4 Dec 2024 12:58:35 +0100 Subject: [PATCH] allow getting http://ip-api.com/json to fail --- scripts/install_config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_config.sh b/scripts/install_config.sh index 5fdf452..04701dd 100755 --- a/scripts/install_config.sh +++ b/scripts/install_config.sh @@ -8,7 +8,7 @@ echo "Beginning $0" birdnet_conf=$my_dir/birdnet.conf # Retrieve latitude and longitude from web -json=$(curl -s4 http://ip-api.com/json) +json=$(curl -s4 http://ip-api.com/json || true) if [ -n "$json" ] && [ "$(echo "$json" | jq -r .status)" = "success" ]; then LATITUDE=$(echo "$json" | jq .lat) LONGITUDE=$(echo "$json" | jq .lon)