Update wgd.sh

update msleep for longer timeout, and move that var to the top to make it more obvious
This commit is contained in:
Leif 2025-02-17 09:41:11 -09:00 committed by GitHub
parent 69b9116dd5
commit 7c8410ab86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,8 @@ heavy_checkmark=$(printf "\xE2\x9C\x85")
heavy_crossmark=$(printf "\xE2\x9D\x8C") heavy_crossmark=$(printf "\xE2\x9D\x8C")
install=$(printf "\xF0\x9F\x92\xBF") install=$(printf "\xF0\x9F\x92\xBF")
msleep=15
PID_FILE=./gunicorn.pid PID_FILE=./gunicorn.pid
environment=$(if [[ $ENVIRONMENT ]]; then echo $ENVIRONMENT; else echo 'develop'; fi) environment=$(if [[ $ENVIRONMENT ]]; then echo $ENVIRONMENT; else echo 'develop'; fi)
if [[ $CONFIGURATION_PATH ]]; then if [[ $CONFIGURATION_PATH ]]; then
@ -291,7 +293,6 @@ _determinePypiMirror(){
done done
min_idx=$((min_idx - 1)) min_idx=$((min_idx - 1))
msleep=5
printf "\n" printf "\n"
printf " Which mirror you would like to use (Hit enter or wait ${msleep} seconds to use default: ${urls[$min_idx]}): " printf " Which mirror you would like to use (Hit enter or wait ${msleep} seconds to use default: ${urls[$min_idx]}): "
read -t ${msleep} -r choice read -t ${msleep} -r choice