From 21fa5d625a94878e30242653dc1b3af8f687dbf6 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 23 Oct 2022 18:14:55 -0400 Subject: [PATCH] Fix bugs in Top Speed 3 server configuration utility. --- game-scripts/topspeedserver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-scripts/topspeedserver.sh b/game-scripts/topspeedserver.sh index db1340b..64b4d95 100755 --- a/game-scripts/topspeedserver.sh +++ b/game-scripts/topspeedserver.sh @@ -43,7 +43,7 @@ read -r -e server if ! [[ "${server}" =~ ^[0-9.]*$ ]]; then ip="$( ping -c1 "${server}" 2> /dev/null | head -1 | cut -d '(' -f2 | cut -d ')' -f1)" - if [[ ${#p} < 3 ]]; then + if [[ ${#ip} -le 3 ]]; then echo "Ip address not found, nothing changed." exit 1 fi