ez
This commit is contained in:
parent
064e90a44c
commit
1569708998
@ -53,7 +53,7 @@ menu(){
|
|||||||
cd "$script_path" || exit
|
cd "$script_path" || exit
|
||||||
clear -x
|
clear -x
|
||||||
title
|
title
|
||||||
echo "What type of update would you like?"
|
echo "--Choose your update type--"
|
||||||
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
|
||||||
@ -79,7 +79,7 @@ menu(){
|
|||||||
do
|
do
|
||||||
clear -x
|
clear -x
|
||||||
title
|
title
|
||||||
echo "Choose your update options "
|
echo "--Choose your update options--"
|
||||||
echo
|
echo
|
||||||
echo "1) -b | Back-up your ix-applications dataset, specify a number after -b"
|
echo "1) -b | Back-up your ix-applications dataset, specify a number after -b"
|
||||||
echo "2) -i | Add application to ignore list, one by one, see example below."
|
echo "2) -i | Add application to ignore list, one by one, see example below."
|
||||||
@ -92,13 +92,13 @@ menu(){
|
|||||||
echo
|
echo
|
||||||
echo "0) Done making selections, proceed with update"
|
echo "0) Done making selections, proceed with update"
|
||||||
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
|
||||||
elif [[ $current_selection == 1 ]]; then
|
elif [[ $current_selection == 1 ]]; then
|
||||||
read -rt 600 -p "Up to how many backups should we keep?\n Please type an integer: " up_backups
|
echo "Up to how many backups should we keep?"
|
||||||
|
read -rt 600 -p "Please type an integer: " up_backups
|
||||||
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
|
||||||
@ -110,7 +110,8 @@ menu(){
|
|||||||
elif [[ $current_selection == 5 ]]; then
|
elif [[ $current_selection == 5 ]]; then
|
||||||
update_selection+=("-v")
|
update_selection+=("-v")
|
||||||
elif [[ $current_selection == 6 ]]; then
|
elif [[ $current_selection == 6 ]]; then
|
||||||
read -rt 600 -p "What do you want your timeout to be?: " up_timeout
|
echo "What do you want your timeout to be?"
|
||||||
|
read -rt 600 -p "Please type an integer: " up_timeout
|
||||||
update_selection+=("-t" "$up_timeout")
|
update_selection+=("-t" "$up_timeout")
|
||||||
elif [[ $current_selection == 7 ]]; then
|
elif [[ $current_selection == 7 ]]; then
|
||||||
update_selection+=("-s")
|
update_selection+=("-s")
|
||||||
|
Loading…
Reference in New Issue
Block a user