async in menu

This commit is contained in:
Heavybullets8 2022-07-26 14:26:19 -06:00
parent ee36687580
commit c60b8d168b

View File

@ -50,9 +50,11 @@ menu(){
echo "0) Exit" echo "0) Exit"
read -rt 600 -p "Please type the number associated with the flag above: " current_selection read -rt 600 -p "Please type the number associated with the flag above: " current_selection
if [[ $current_selection == 1 ]]; then if [[ $current_selection == 1 ]]; 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
elif [[ $current_selection == 2 ]]; then update_selection+=("-U" "$up_async")
update_selection+=("-u") 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 elif [[ $current_selection == 0 ]]; then
echo "Exiting.." echo "Exiting.."
exit exit