Update run-all-speedtests.sh

This commit is contained in:
2023-05-21 22:24:18 -05:00
parent 8e79849815
commit 43b2fe9bf5

View File

@@ -14,11 +14,12 @@ echo -e "${idsCL[LightGreen]}Run All Local Speedtests${idsCL[Default]}"
echo
echo -en "${idsCL[LightCyan]}Do you wish to continue (y/N)?${idsCL[Default]}"
read -n 1 continue
echo
echo
case $continue in
[Yy])
local_servers=$(speedtest -L)
local_servers=(${local_servers//$'\n'/ })
echo
for serverID in ${local_servers[@]}; do
sid='^[[:digit:]]{4,6}$'
[[ ${serverID} =~ ${sid} ]] && echo -e "${idsCL[Green]}Running on '${serverID}'${idsCL[Default]}" && echo 'YES' # && speedtest -s ${serverID}