From 6757fc87086933626bb291f3b9c66921f10edfa3 Mon Sep 17 00:00:00 2001 From: theofficialgman <28281419+theofficialgman@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:08:03 -0400 Subject: [PATCH] manage: add success/failure message on completion of manage-daemon --- manage | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/manage b/manage index 993e3cb6a7..2f42a93193 100755 --- a/manage +++ b/manage @@ -540,6 +540,21 @@ ${DIRECTORY}/icons/none-1.png failed_apps="$(echo "$queue" | grep ';[0-9]\+$' | grep -v ';0$' | awk -F';' '{print $2}')" diagnose_apps "$failed_apps" + successful_apps="$(echo "$queue" | grep ';0$' | awk -F';' '{print $2}')" + if [ ! -z "${successful_apps}" ]; then + yad "${yadflags[@]}" --class Pi-Apps --name "Pi-Apps" --width=700 --height=300 --title="Pi-Apps install/uninstall/updates complete" \ + --image="${DIRECTORY}/icons/logo-64.png" --image-on-top \ + --text='Thanks for using Pi-Apps!'$'\n'"The following apps were succcessful: $successful_apps" \ + --wrap --fontname=12 \ + --button='Ok' + else + yad "${yadflags[@]}" --class Pi-Apps --name "Pi-Apps" --width=700 --height=300 --title="Pi-Apps install/uninstall/updates complete" \ + --image="${DIRECTORY}/icons/error.png" --image-on-top \ + --text='Thanks for using Pi-Apps!'$'\n'"We are sorry but none of your apps install/uninstall/updates were successful."$'\n'"Consider opening an issue on GitHub or joining our Discord as this likely indicates a larger issue with your system." \ + --wrap --fontname=12 \ + --button='Ok' + fi + # if update refresh or update-file actions were run then update the .git folder if [ "$sourced_updater" == 1 ]; then update_git