always update prior to a_u_a

This commit is contained in:
Heavybullets8 2022-08-12 06:53:35 -06:00
parent 592b739bf0
commit 7c7f42b9cb

View File

@ -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,6 +91,11 @@ 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")
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")
@ -105,11 +103,6 @@ if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #con
echo_array+=("Failed to update")
return
fi
fi
else
echo -e "\n$app_name\nMajor Release, update manually"
return 0
fi
after_update_actions
}
export -f update_apps