Skip to content

Instantly share code, notes, and snippets.

@cristianradulescu
Last active September 19, 2022 06:05
Show Gist options
  • Save cristianradulescu/5bb29875c8c771e12710e00824c01e74 to your computer and use it in GitHub Desktop.
Save cristianradulescu/5bb29875c8c771e12710e00824c01e74 to your computer and use it in GitHub Desktop.
MacOS remove quarantine attr
#!/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