forked from avibrazil/RDM
-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathuninstall
More file actions
executable file
·32 lines (27 loc) · 815 Bytes
/
uninstall
File metadata and controls
executable file
·32 lines (27 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
[[ -z $RDM_PATH ]] && RDM_PATH='/Applications'
read -p "Uninstall RDM from ${RDM_PATH}? (y/N): " __doUninstall
while [[ -z $__flag ]]; do
case "$__doUninstall" in
[Yy]* )
__flag=true
;;
[Nn]*|'')
exit 1
;;
* )
read -p "Please type y or n: " __doUninstall
;;
esac
done
osascript -e 'quit app "RDM"' \
&& rm -rf "${RDM_PATH}/RDM.app" \
&& rm -f "${HOME}/Library/Preferences/net.alkalay.RDM.plist" \
&& echo "
Uninstall finished!
Your preferences are NOT removed. The system-wide settings backup
are located in:
${HOME}/Library/Application Support/net.alkalay.RDM/Backups
for just in case. If you don't see the folder, no worries!
Backups made only when needed, that is, not always.
"