Created
September 9, 2019 03:58
-
-
Save spham/0e8780d42071bca4f4575326a27830a0 to your computer and use it in GitHub Desktop.
disable notification mac os x
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/bash | |
| # Disable macOS Upgrade notifications | |
| # Step 1: prevent the update which brings the notification down | |
| softwareupdate --ignore macOSInstallerNotification_GM | |
| echo | |
| # Step 2: delete the file if it's already on the computer | |
| if [[ -d /Library/Bundles/OSXNotification.bundle ]]; then | |
| echo "OSXNotification.bundle found. Deleting..." | |
| rm -rf /Library/Bundles/OSXNotification.bundle ||: | |
| else | |
| echo "OSXNotification.bundle not found." | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment