Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # Log start
- echo "[$(date)] Starting quarantine removal..." >> ~/Library/Logs/remove_quarantine.log
- # Remove from /Applications — requires sudo, so skipped for LaunchAgent (see below)
- # sudo xattr -r -d com.apple.quarantine /Applications/*
- # Remove from ~/Applications — works without sudo
- xattr -r -d com.apple.quarantine ~/Applications/*
- # Log done
- echo "[$(date)] Done." >> ~/Library/Logs/remove_quarantine.log
Advertisement
Add Comment
Please, Sign In to add comment