Created
July 14, 2023 14:11
-
-
Save atchoo78/636c5ccbb656db719d861d6ae2642ae2 to your computer and use it in GitHub Desktop.
Turn "Allow apps from anywhere" (Gatekeeper) option in macOS On or Off
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
gatekeeper() { | |
if [ "$1" == "off" ] | |
then | |
sudo spctl --master-disable | |
elif [ "$1" == "on" ] | |
then | |
sudo spctl --master-enable | |
else | |
sudo spctl --master-enable | |
fi | |
echo "GateKeeper is $1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment