Update run-all-speedtests.sh

This commit is contained in:
2023-05-21 22:22:34 -05:00
parent 421afc3fb5
commit f0a0a8fcb4

View File

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