Fix bugs in Top Speed 3 server configuration utility.
This commit is contained in:
parent
92213c21e0
commit
21fa5d625a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user