Update all non-major dependencies
[ProtonMail-WebClient.git] / applications / pass-desktop / src / uninstallers / macos / uninstall.sh
blobff3c3d2e13ac8a43d5b632b62350643e583fcfd5
1 #!/bin/sh
3 CHOICE=`osascript <<EOF
4 button returned of (display dialog "This action will uninstall Proton Pass and remove associated data. Are you sure you want to continue?" buttons {"Cancel", "Uninstall"} default button 2 with icon caution with title "Proton Pass Uninstall")
5 EOF`
7 if [ "$CHOICE" = "Uninstall" ]; then
8 osascript -e 'quit app "Proton Pass"'
10 rm -rf "$HOME"/Library/Application\ Support/Proton\ Pass/
11 rm -rf "$HOME"/Library/Logs/Proton\ Pass/
12 rm -rf /Applications/Proton\ Pass.app
13 rm -rf /Applications/Proton\ Pass\ Beta.app
15 osascript <<EOF
16 display dialog "Proton Pass successfully uninstalled." buttons {"Quit"} default button 1 with title "Proton Pass Uninstall"
17 EOF