Skip to content

Commit

Permalink
uninstall: click uninstall link on uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Aug 30, 2024
1 parent 1dc5337 commit e1d90ec
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uninstall
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ function error {

DIRECTORY="$(readlink -f "$(dirname "$0")")"

#click new uninstallation analytics link
if [ "$(cat "${DIRECTORY}/data/settings/Enable analytics")" == 'Yes' ];then
curl -s -X 'GET' "https://analytics.pi-apps.io/pi-apps-uninstall-script/track" -H 'accept: image/gif' -A "Pi-Apps Raspberry Pi app store" >/dev/null &
fi

if [ -z "$(dpkg-query -W --showformat='${Status}\n' yad 2>/dev/null | grep "install ok installed")" ];then
zenity --title='Pi-Apps' --window-icon="${DIRECTORY}/icons/logo.png" \
--list --text="Do you want to uninstall YAD?" \
Expand Down

0 comments on commit e1d90ec

Please sign in to comment.