Created
April 15, 2018 18:06
-
-
Save davidraedev/9e3a6c2ddd57ac78563cba6964a742c9 to your computer and use it in GitHub Desktop.
enable and disable Gatekeeper in High Sierra
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 | |
# enable and disable Gatekeeper in High Sierra | |
if [ "$1" = "enable" ]; then | |
sudo spctl --master-enable; | |
elif [ "$1" = "disable" ]; then | |
sudo spctl --master-disable; | |
else | |
echo "Enter a command 'enable|disable'"; | |
exit; | |
fi; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment