fixes
This commit is contained in:
parent
c60b8d168b
commit
36aa0cfec3
@ -47,13 +47,16 @@ menu(){
|
|||||||
echo "What type of update would you like?"
|
echo "What type of update would you like?"
|
||||||
echo "1) -U | Update all applications, ignores versions"
|
echo "1) -U | Update all applications, ignores versions"
|
||||||
echo "2) -u | Update all applications, does not update Major releases"
|
echo "2) -u | Update all applications, does not update Major releases"
|
||||||
|
echo
|
||||||
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
|
||||||
read -rt 600 -p "How many applications do you want updating at the same time?\n Please type an integer: " up_async
|
echo "How many applications do you want updating at the same time?"
|
||||||
|
read -rt 600 -p "Please type an integer greater than 0: " up_async
|
||||||
update_selection+=("-U" "$up_async")
|
update_selection+=("-U" "$up_async")
|
||||||
elif [[ $current_selection == 2 ]]; then
|
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
|
echo "How many applications do you want updating at the same time?"
|
||||||
|
read -rt 600 -p "Please type an integer greater than 0: " up_async
|
||||||
update_selection+=("-u" "$up_async")
|
update_selection+=("-u" "$up_async")
|
||||||
elif [[ $current_selection == 0 ]]; then
|
elif [[ $current_selection == 0 ]]; then
|
||||||
echo "Exiting.."
|
echo "Exiting.."
|
||||||
|
Loading…
Reference in New Issue
Block a user