Last active
September 19, 2022 06:05
-
-
Save cristianradulescu/5bb29875c8c771e12710e00824c01e74 to your computer and use it in GitHub Desktop.
MacOS remove quarantine attr
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
#!/usr/bin/env bash | |
### Error: | |
# “CopyQ.app” cannot be opened because the developer cannot be verified. | |
# macOS cannot verify that this app is free from malware. | |
# Homebrew Cask downloaded this file today at 08:58. | |
### Run: | |
# macos-remove-quarantine.sh /Applications/CopyQ.app | |
sudo spctl --master-disable && \ | |
sudo xattr -rd com.apple.quarantine $1 && \ | |
sudo spctl --master-enable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment