re-arrange echo array

This commit is contained in:
Heavybullets8 2022-08-12 10:44:32 -06:00
parent c528757b88
commit bb50772fc2

View File

@ -75,9 +75,9 @@ if grep -qs "^$app_name," failed.txt ; then
sed -i /"$app_name",/d failed.txt sed -i /"$app_name",/d failed.txt
fi fi
fi fi
if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #continue to update echo_array+=("\n$app_name")
if [[ "$diff_app" == "$diff_chart" || "$update_all_apps" == "true" ]]; then #Check for major versions or -U
if [[ $stop_before_update == "true" && "$startstatus" != "STOPPED" ]]; then # Check to see if user is using -S or not if [[ $stop_before_update == "true" && "$startstatus" != "STOPPED" ]]; then # Check to see if user is using -S or not
echo_array+=("\n$app_name")
[[ "$verbose" == "true" ]] && echo_array+=("Stopping prior to update..") [[ "$verbose" == "true" ]] && echo_array+=("Stopping prior to update..")
if stop_app ; then if stop_app ; then
echo_array+=("Stopped") echo_array+=("Stopped")
@ -90,7 +90,6 @@ else
echo -e "\n$app_name\nMajor Release, update manually" echo -e "\n$app_name\nMajor Release, update manually"
return 0 return 0
fi fi
[[ ! $stop_before_update == "true" && "$startstatus" != "STOPPED" ]] && echo_array+=("\n$app_name")
[[ "$verbose" == "true" ]] && echo_array+=("Updating..") [[ "$verbose" == "true" ]] && echo_array+=("Updating..")
if update_app ;then if update_app ;then
echo_array+=("Updated\n$old_full_ver\n$new_full_ver") echo_array+=("Updated\n$old_full_ver\n$new_full_ver")