Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/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;
Add Comment
Please, Sign In to add comment