From 862e95d9e84e24c708a606e702d69593ee7dda50 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Mon, 1 Feb 2021 21:10:14 +0100 Subject: [PATCH] don't ask for confirmation --- menu/main_menu.sh | 38 ++++++++++++++------------------------ 1 file changed, 14 insertions(+), 24 deletions(-) diff --git a/menu/main_menu.sh b/menu/main_menu.sh index 710c32ee..fa06a316 100644 --- a/menu/main_menu.sh +++ b/menu/main_menu.sh @@ -47,19 +47,14 @@ case "$choice" in "Update Nextcloud major") if [ -f "$SCRIPTS"/update.sh ] then - if yesno_box_yes "Do you want to fetch the latest update.sh script?" - then - print_text_in_color "$ICyan" "Removing the old script..." - rm -f "$SCRIPTS"/update.sh - print_text_in_color "$ICyan" "Downloading the Update script..." - download_script STATIC update - chmod +x "$SCRIPTS"/update.sh - bash "$SCRIPTS"/update.sh - else - bash "$SCRIPTS"/update.sh - fi + print_text_in_color "$ICyan" "Removing the old script..." + rm -f "$SCRIPTS"/update.sh + print_text_in_color "$ICyan" "Downloading the latest update script..." + download_script STATIC update + chmod +x "$SCRIPTS"/update.sh + bash "$SCRIPTS"/update.sh else - print_text_in_color "$ICyan" "Downloading the Update script..." + print_text_in_color "$ICyan" "Downloading the latest update script..." download_script STATIC update chmod +x "$SCRIPTS"/update.sh bash "$SCRIPTS"/update.sh @@ -68,22 +63,17 @@ case "$choice" in "Update Nextcloud minor") if [ -f "$SCRIPTS"/update.sh ] then - if yesno_box_yes "Do you want to fetch the latest update.sh script?" - then - print_text_in_color "$ICyan" "Removing the old script..." - rm -f "$SCRIPTS"/update.sh - print_text_in_color "$ICyan" "Downloading the Update script..." - download_script STATIC update - chmod +x "$SCRIPTS"/update.sh - bash "$SCRIPTS"/update.sh minor - else - bash "$SCRIPTS"/update.sh minor - fi - else + print_text_in_color "$ICyan" "Removing the old script..." + rm -f "$SCRIPTS"/update.sh print_text_in_color "$ICyan" "Downloading the Update script..." download_script STATIC update chmod +x "$SCRIPTS"/update.sh bash "$SCRIPTS"/update.sh minor + else + print_text_in_color "$ICyan" "Downloading the latest update script..." + download_script STATIC update + chmod +x "$SCRIPTS"/update.sh + bash "$SCRIPTS"/update.sh minor fi ;; *)