Skip to content

Instantly share code, notes, and snippets.

@rluba
Last active June 26, 2023 10:30
Show Gist options
  • Save rluba/bd920abed1f77a860880bbcc10ac270d to your computer and use it in GitHub Desktop.
Save rluba/bd920abed1f77a860880bbcc10ac270d to your computer and use it in GitHub Desktop.
#!/bin/sh
# On macOS, anything you download via the web gets flagged as quarantined, which causes error dialogs when executing programs or loading libraries from quarantined directories.
# This script removes the quarantine flag from the whole compiler directory and its contents.
SCRIPT_DIR=`cd "$(dirname "$0")" >/dev/null 2>&1 && pwd`
echo "De-quarantining $SCRIPT_DIR"
xattr -dr com.apple.quarantine "$SCRIPT_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment