Skip to content

Instantly share code, notes, and snippets.

@naus3a
Created February 15, 2018 11:35
Show Gist options
  • Save naus3a/85d9df38d643275b2c49ad3f8055a325 to your computer and use it in GitHub Desktop.
Save naus3a/85d9df38d643275b2c49ad3f8055a325 to your computer and use it in GitHub Desktop.
Bash script to fix the infamous Gatekeeper path randomization issue in Sierra or above
#/bin/bash
here="`dirname \"$0\"`"
for i in $here/*.app; do
cp -r $i ~/Desktop/temp.app
cp -r ~/Desktop/temp.app $i
rm -rf ~/Desktop/temp.app
xattr -dr com.apple.quarantine $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment