Skip to content

Instantly share code, notes, and snippets.

@bazay
Created January 10, 2023 01:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bazay/4039865d79dd5ff4c8fc4729ecdcef38 to your computer and use it in GitHub Desktop.
Save bazay/4039865d79dd5ff4c8fc4729ecdcef38 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# authorize_app (path_to_file): A MAC OS X script to permit untrusted source apps to run.
#
# WARN: This is a security risk and should only be used on applications you trust.
function authorize_app () {
if [[ -z "$1" ]]; then
echo "ERROR: Please provide a file path to the application for authorization."
echo " authorize_app PATH"
return 1
fi
xattr -d com.apple.quarantine "$1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment