Created
December 6, 2018 21:33
-
-
Save apizz/e1312d15f2f6e976e687d558bb75d7a1 to your computer and use it in GitHub Desktop.
For uninstalling Wacom driver software before installing a newer version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
OLD_APP="/Applications/Pen Tablet.localized/Pen Tablet Utility.app" | |
APP="/Applications/Wacom Tablet.localized/Wacom Tablet Utility.app" | |
OLD_EXE="${OLD_APP}/Contents/Resources/uninstall.pl" | |
EXE="${APP}/Contents/MacOS/Wacom Tablet Utility" | |
# If this app is installing, munki has detected we have a newer version. Therefore, if Wacom Tablet Utility already exists then we need to uninstall first | |
if [ -d "$OLD_APP" ]; then | |
sudo "$OLD_EXE" | |
fi | |
if [ -d "$APP" ]; then | |
sudo "$EXE" --uninstall | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment