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 ;; *)