diff --git a/functions/menu.sh b/functions/menu.sh index 7fef071d..469cd581 100644 --- a/functions/menu.sh +++ b/functions/menu.sh @@ -66,7 +66,30 @@ menu(){ exec bash "$script_name" "${update_selection[@]}" exit else - update_selection+=("$current_selection") + if [[ $current_selection == 1 ]]; then + update_selection+=("-U") + elif [[ $current_selection == 2 ]]; then + update_selection+=("-u") + elif [[ $current_selection == 3 ]]; then + read -rt 600 -p "Up to how many backups should we keep?\n Please type an integer: " up_backups + update_selection+=("-b $up_backups") + elif [[ $current_selection == 4 ]]; then + read -rt 600 -p "What is the name of the application we should ignore?: " up_ignore + update_selection+=("-i $up_ignore") + elif [[ $current_selection == 5 ]]; then + update_selection+=("-r") + elif [[ $current_selection == 6 ]]; then + update_selection+=("-S") + elif [[ $current_selection == 7 ]]; then + update_selection+=("-v") + elif [[ $current_selection == 8 ]]; then + read -rt 600 -p "What do you want your timeout to be?: " up_timeout + update_selection+=("-t $up_timeout") + elif [[ $current_selection == 9 ]]; then + update_selection+=("-s") + elif [[ $current_selection == 10 ]]; then + update_selection+=("-p") + fi fi done ;;