Created
April 29, 2015 16:05
-
-
Save steverichey/ed1d5c7450be0822c3d0 to your computer and use it in GitHub Desktop.
Fix for OSX Yosemite "can't be opened" bug
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
#!/bin/sh | |
# Fixes "*.app can't be opened" errors | |
# Run `chmod +x` on this file and then | |
# move it to /usr/bin/ to make it GLOBAL | |
if [ $# -eq 0 ] | |
then | |
echo "No arguments supplied! Expected a path to a .app file" | |
elif [ -z "$1" ] | |
then | |
echo "Invalid argument supplied! Expected a path to a .app file" | |
elif [ ! -e "$1" ] | |
then | |
echo "Argument was not a valid file path! Expected a path to a .app file" | |
else | |
chmod +x $1/contents/macos/* | |
echo "execfix complete!" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment