mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
Update wgd.sh install pypi mirror auto select
add timeout value so that the install/update can run fully scripted without normal user intervention if desired
This commit is contained in:
parent
b60b0fb511
commit
a2db4f06b1
@ -281,9 +281,10 @@ _determinePypiMirror(){
|
|||||||
index=$((index+1))
|
index=$((index+1))
|
||||||
done
|
done
|
||||||
|
|
||||||
|
msleep=5
|
||||||
printf "\n"
|
printf "\n"
|
||||||
printf " Which mirror you would like to use (Hit enter to use default): "
|
printf " Which mirror you would like to use (Hit enter or wait ${msleep} seconds to use default): "
|
||||||
read -r choice
|
read -t ${msleep} -r choice
|
||||||
|
|
||||||
|
|
||||||
if [[ "$choice" =~ ^[0-9]+$ ]] && (( choice >= 1 && choice <= ${#urls[@]} )); then
|
if [[ "$choice" =~ ^[0-9]+$ ]] && (( choice >= 1 && choice <= ${#urls[@]} )); then
|
||||||
|
Loading…
Reference in New Issue
Block a user