test
This commit is contained in:
parent
e965e5c3cd
commit
0fb6383ce5
@ -81,6 +81,7 @@ menu(){
|
|||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
update_selection+=("-u" "$up_async")
|
update_selection+=("-u" "$up_async")
|
||||||
|
update_list+=("-u")
|
||||||
fi
|
fi
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
@ -101,14 +102,10 @@ menu(){
|
|||||||
echo
|
echo
|
||||||
echo "Current Choices"
|
echo "Current Choices"
|
||||||
echo "---------------"
|
echo "---------------"
|
||||||
for i in "${update_list[@]}"
|
echo "${update_list[*]}"
|
||||||
do
|
|
||||||
echo "$i"
|
|
||||||
done
|
|
||||||
echo
|
echo
|
||||||
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 == 0 ]]; then
|
if [[ $current_selection == 0 ]]; then
|
||||||
exec bash "$script_name" "${update_selection[@]}"
|
exec bash "$script_name" "${update_selection[@]}"
|
||||||
exit
|
exit
|
||||||
@ -121,7 +118,7 @@ menu(){
|
|||||||
update_selection+=("-b" "$up_backups")
|
update_selection+=("-b" "$up_backups")
|
||||||
elif [[ $current_selection == 2 ]]; then
|
elif [[ $current_selection == 2 ]]; then
|
||||||
read -rt 600 -p "What is the name of the application we should ignore?: " up_ignore
|
read -rt 600 -p "What is the name of the application we should ignore?: " up_ignore
|
||||||
update_list+=("-b $up_ignore")
|
update_list+=("-i $up_ignore")
|
||||||
update_selection+=("-i" "$up_ignore")
|
update_selection+=("-i" "$up_ignore")
|
||||||
elif [[ $current_selection == 3 ]]; then
|
elif [[ $current_selection == 3 ]]; then
|
||||||
update_list+=("-r")
|
update_list+=("-r")
|
||||||
|
Loading…
Reference in New Issue
Block a user