Skip to content

Instantly share code, notes, and snippets.

@mitchbne
Created May 9, 2024 04:15
Show Gist options
  • Save mitchbne/d4c4b521124f37a0eadef0c5411e6572 to your computer and use it in GitHub Desktop.
Save mitchbne/d4c4b521124f37a0eadef0c5411e6572 to your computer and use it in GitHub Desktop.
Make an executable file safe to run on MacOS
local filename=$1
if [ -z "$filename" ]; then
echo "No file specified"
echo "Usage: ./quarantine.sh <filename>"
return 1
fi
xattr -d com.apple.quarantine $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment