Created
April 13, 2016 09:41
-
-
Save tjluoma/3e326a437cb3b2d9ce61a5db3f884c41 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/zsh -f | |
# clean out bartender files to try to fix install issues. | |
# | |
# From: Timothy J. Luoma | |
# Mail: luomat at gmail dot com | |
# Date: 2016-04-13 | |
NAME="$0:t:r" | |
PATH=/usr/local/scripts:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin | |
# Quit Bartender, if running | |
pgrep -qx Bartender\ 2 && pkill Bartender\ 2 | |
# move all helper files to the trash | |
sudo -H mv -vf \ | |
/Library/Audio/Plug-Ins/HAL/BartenderAudioPlugIn.plugin/ \ | |
/Library/LaunchDaemons/com.surteesstudios.Bartender.BartenderInstallHelper.plist \ | |
/Library/PrivilegedHelperTools/com.surteesstudios.Bartender.BartenderInstallHelper \ | |
/Library/ScriptingAdditions/BartenderHelper.osax \ | |
"$HOME/.Trash/" | |
read "?You need to reboot now. Save your work, close all apps, then press Enter to continue: " ANSWER | |
sudo shutdown -r now | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment