Fix typos and add error handling for curl command

Co-authored-by: ShaYmez <76499782+ShaYmez@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-20 02:06:31 +00:00
parent 8308b6254e
commit 4b0f43a902
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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."

View File

@ -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 "