From f0a0a8fcb42f8d95e21e10cb711070770d96a178 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 21 May 2023 22:22:34 -0500 Subject: [PATCH] Update run-all-speedtests.sh --- run-all-speedtests.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/run-all-speedtests.sh b/run-all-speedtests.sh index 39505d9..b19759d 100755 --- a/run-all-speedtests.sh +++ b/run-all-speedtests.sh @@ -12,16 +12,17 @@ fi echo echo -e "${idsCL[LightGreen]}Run All Local Speedtests${idsCL[Default]}" echo -echo -e "${idsCL[LightCyan]}Do you wish to continue (y/N)?${idsCL[Default]}" +echo -en "${idsCL[LightCyan]}Do you wish to continue (y/N)?${idsCL[Default]}" read -n 1 continue case $continue in [Yy]) local_servers=$(speedtest -L) local_servers=(${local_servers//$'\n'/ }) - + echo for serverID in ${local_servers[@]}; do + echo -e "${idsCL[Green]}Running on '${serverID}'${idsCL[Default]}" sid='^[[:digit:]]{4,6}$' - [[ ${serverID} =~ ${sid} ]] && speedtest -s ${serverID} + # [[ ${serverID} =~ ${sid} ]] && speedtest -s ${serverID} done ;;