From 7c7f42b9cb0348e35f602def497b9ea462760c05 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Fri, 12 Aug 2022 06:53:35 -0600 Subject: [PATCH] always update prior to a_u_a --- functions/update_apps.sh | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/functions/update_apps.sh b/functions/update_apps.sh index 12c5543e..987dad83 100644 --- a/functions/update_apps.sh +++ b/functions/update_apps.sh @@ -79,13 +79,6 @@ if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #con if [[ $stop_before_update == "true" ]]; then # Check to see if user is using -S or not if [[ "$startstatus" == "STOPPED" ]]; then # if status is already stopped, skip while loop echo_array+=("\n$app_name") - [[ "$verbose" == "true" ]] && echo_array+=("Updating..") - if update ;then - echo_array+=("Updated\n$old_full_ver\n$new_full_ver") - else - echo_array+=("Failed to update") - return - fi else # if status was not STOPPED, stop the app prior to updating echo_array+=("\n$app_name") [[ "$verbose" == "true" ]] && echo_array+=("Stopping prior to update..") @@ -98,18 +91,18 @@ if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #con fi else #user must not be using -S, just update echo_array+=("\n$app_name") - [[ "$verbose" == "true" ]] && echo_array+=("Updating..") - if update ;then - echo_array+=("Updated\n$old_full_ver\n$new_full_ver") - else - echo_array+=("Failed to update") - return - fi fi else echo -e "\n$app_name\nMajor Release, update manually" return 0 fi +[[ "$verbose" == "true" ]] && echo_array+=("Updating..") +if update ;then + echo_array+=("Updated\n$old_full_ver\n$new_full_ver") +else + echo_array+=("Failed to update") +return +fi after_update_actions } export -f update_apps