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 22, 2024
1 parent 673dab9 commit 249939a
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 249939a

Please sign in to comment.