Update run-all-speedtests.sh
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user