Disable spinner while selecting options; Silence wget command

This commit is contained in:
Rémi Bédard-Couture 2024-04-19 11:54:14 -04:00
parent 493bc0d4a4
commit 0a88ca51c2
2 changed files with 6 additions and 3 deletions

View file

@ -102,7 +102,10 @@ function update_script() {
menu_array[$array_index]=ON
done
fi
CHOICES=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "CALIBRE-WEB OPTIONS" --separate-output --checklist "Choose Additional Options" 15 125 8 "${array[@]}" 3>&1 1>&2 2>&3)
if [ -n "$SPINNER_PID" ] && ps -p $SPINNER_PID > /dev/null; then kill $SPINNER_PID > /dev/null; fi
CHOICES=$(whiptail --backtitle "Proxmox VE Helper Scripts" --title "CALIBRE-WEB OPTIONS" --separate-output --checklist "Choose Additional Options" 15 125 8 "${menu_array[@]}" 3>&1 1>&2 2>&3)
spinner &
SPINNER_PID=$!
if [ ! -z "$CHOICES" ]; then
declare -a options
for CHOICE in $CHOICES; do