Created
May 9, 2024 04:15
-
-
Save mitchbne/d4c4b521124f37a0eadef0c5411e6572 to your computer and use it in GitHub Desktop.
Make an executable file safe to run on MacOS
This file contains 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
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