opexxx

Remove_ quarantine.sh

Jun 22nd, 2025
376
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Log start
  4. echo "[$(date)] Starting quarantine removal..." >> ~/Library/Logs/remove_quarantine.log
  5.  
  6. # Remove from /Applications — requires sudo, so skipped for LaunchAgent (see below)
  7. # sudo xattr -r -d com.apple.quarantine /Applications/*
  8.  
  9. # Remove from ~/Applications — works without sudo
  10. xattr -r -d com.apple.quarantine ~/Applications/*
  11.  
  12. # Log done
  13. echo "[$(date)] Done." >> ~/Library/Logs/remove_quarantine.log
Advertisement
Add Comment
Please, Sign In to add comment