From 4b0f43a902be872f0fb1895a30ac4f201fe89ef1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 20 Nov 2025 02:06:31 +0000 Subject: [PATCH] Fix typos and add error handling for curl command Co-authored-by: ShaYmez <76499782+ShaYmez@users.noreply.github.com> --- hblink3-docker-install.sh | 2 +- usr/local/sbin/flush | 2 +- usr/local/sbin/update | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hblink3-docker-install.sh b/hblink3-docker-install.sh index 0ad74ca..e5f9a70 100755 --- a/hblink3-docker-install.sh +++ b/hblink3-docker-install.sh @@ -47,7 +47,7 @@ then fi DIRDIR=$(pwd) LOCAL_IP=$(ip a | grep inet | grep "eth0\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}') -EXTERNAL_IP=$(curl https://ipecho.net/plain) +EXTERNAL_IP=$(curl -s --connect-timeout 5 https://ipecho.net/plain 2>/dev/null || echo "Unable to detect") ARC=$(lscpu | grep Arch | awk '{print $2}') VERSION=$(sed 's/\..*//' /etc/debian_version) ARMv7l=https://get.docker.com | sh diff --git a/usr/local/sbin/flush b/usr/local/sbin/flush index 88dbd4d..365687c 100755 --- a/usr/local/sbin/flush +++ b/usr/local/sbin/flush @@ -87,7 +87,7 @@ echo "Flushing network tracking table....." conntrack -F sleep 1 -echo "Starting Dasdhboard....." +echo "Starting Dashboard....." systemctl restart hbmon figlet "HBMonv2" echo "Done." diff --git a/usr/local/sbin/update b/usr/local/sbin/update index a6e03a3..28b34c1 100755 --- a/usr/local/sbin/update +++ b/usr/local/sbin/update @@ -19,7 +19,7 @@ # Update containers / service clean/truncate/ and restart of services.. -LOCAL_IP=$(ip a | grep inet | grep "ens18\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}') +LOCAL_IP=$(ip a | grep inet | grep "eth0\|en" | awk '{print $2}' | tr '/' ' ' | awk '{print $1}') ARC=$(lscpu | grep Arch | awk '{print $2}') VERSION=$(sed 's/\..*//' /etc/debian_version) @@ -57,7 +57,7 @@ echo " You will need to edit your config and then run the following command " echo "" echo " Type 'hblink-menu' for main menu " echo " Use the menu to edit your server / config " -echo " Refur to the official HBlink Repo for more documentation " +echo " Refer to the official HBlink Repo for more documentation " echo " https://github.com/HBLink-org/hblink3 " echo "" echo " Check out the docker installer of HBlink3 here "