Fix bugs in Top Speed 3 server configuration utility.

This commit is contained in:
Storm Dragon 2022-10-23 18:14:55 -04:00
parent 92213c21e0
commit 21fa5d625a

View File

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