Skip to content

Instantly share code, notes, and snippets.

@tjluoma
Created April 13, 2016 09:41
Show Gist options
  • Save tjluoma/3e326a437cb3b2d9ce61a5db3f884c41 to your computer and use it in GitHub Desktop.
Save tjluoma/3e326a437cb3b2d9ce61a5db3f884c41 to your computer and use it in GitHub Desktop.
#!/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