Update run-all-speedtests.sh
This commit is contained in:
@@ -12,16 +12,17 @@ fi
|
|||||||
echo
|
echo
|
||||||
echo -e "${idsCL[LightGreen]}Run All Local Speedtests${idsCL[Default]}"
|
echo -e "${idsCL[LightGreen]}Run All Local Speedtests${idsCL[Default]}"
|
||||||
echo
|
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
|
read -n 1 continue
|
||||||
case $continue in
|
case $continue in
|
||||||
[Yy])
|
[Yy])
|
||||||
local_servers=$(speedtest -L)
|
local_servers=$(speedtest -L)
|
||||||
local_servers=(${local_servers//$'\n'/ })
|
local_servers=(${local_servers//$'\n'/ })
|
||||||
|
echo
|
||||||
for serverID in ${local_servers[@]}; do
|
for serverID in ${local_servers[@]}; do
|
||||||
|
echo -e "${idsCL[Green]}Running on '${serverID}'${idsCL[Default]}"
|
||||||
sid='^[[:digit:]]{4,6}$'
|
sid='^[[:digit:]]{4,6}$'
|
||||||
[[ ${serverID} =~ ${sid} ]] && speedtest -s ${serverID}
|
# [[ ${serverID} =~ ${sid} ]] && speedtest -s ${serverID}
|
||||||
done
|
done
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user