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:
Leif 2025-02-16 11:43:47 -09:00 committed by GitHub
parent b60b0fb511
commit a2db4f06b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -281,9 +281,10 @@ _determinePypiMirror(){
index=$((index+1))
done
msleep=5
printf "\n"
printf " Which mirror you would like to use (Hit enter to use default): "
read -r choice
printf " Which mirror you would like to use (Hit enter or wait ${msleep} seconds to use default): "
read -t ${msleep} -r choice
if [[ "$choice" =~ ^[0-9]+$ ]] && (( choice >= 1 && choice <= ${#urls[@]} )); then