Created
May 31, 2018 17:22
-
-
Save mbierman/9a56826fd7708a96ff95339f550305b5 to your computer and use it in GitHub Desktop.
Clear Notes
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
| #!/usr/bin/env bash | |
| ERROR=$(automator "$HOME/Library/Services/Notifications.workflow" 3>&1 1>&2 2>&3 | tee /dev/stderr) | |
| if [[ $ERROR = *"Cache location entry for /System/Library/CoreServices/Applications/System"* ]]; then | |
| echo "Fixing cache.." | |
| rm "/Users/bierman/Library/Caches/com.apple.automator.actionCache-bundleLocations.plist" | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment