Last active
October 19, 2021 14:38
-
-
Save grahampugh/a027206e47a1e4e9f346b884dd8cfdeb to your computer and use it in GitHub Desktop.
Script to prevent the macOS Upgrade Notification popup, or delete it if it's already installed
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
Thanks for the script! Does it include "Updates Available" in OSXNotification.bundle?