Skip to content

Commit

Permalink
manage: add success/failure message on completion of manage-daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Oct 3, 2024
1 parent 8e51d83 commit 6757fc8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions manage
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6757fc8

Please sign in to comment.