From c60b8d168bbbd2ffa1aa8c3b8d8b8dc5b1e66a07 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 26 Jul 2022 14:26:19 -0600 Subject: [PATCH] async in menu --- functions/menu.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/functions/menu.sh b/functions/menu.sh index 0f17f205..a92b6660 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -50,9 +50,11 @@ menu(){ echo "0) Exit" read -rt 600 -p "Please type the number associated with the flag above: " current_selection if [[ $current_selection == 1 ]]; then - update_selection+=("-U") - elif [[ $current_selection == 2 ]]; then - update_selection+=("-u") + read -rt 600 -p "How many applications do you want updating at the same time?\n Please type an integer: " up_async + update_selection+=("-U" "$up_async") + elif [[ $current_selection == 2 ]]; then + read -rt 600 -p "How many applications do you want updating at the same time?\n Please type an integer: " up_async + update_selection+=("-u" "$up_async") elif [[ $current_selection == 0 ]]; then echo "Exiting.." exit