Skip to content

Instantly share code, notes, and snippets.

@brendanjerwin
Created May 10, 2013 18:33
Show Gist options
  • Save brendanjerwin/5556439 to your computer and use it in GitHub Desktop.
Save brendanjerwin/5556439 to your computer and use it in GitHub Desktop.
xcode_proj=`find . -name "*.xc*" -d 1 | sort -r | head -1`
if [ `echo -n $xcode_proj | wc -m` == 0 ]
then
echo "No xcworkspace/xcodeproj file found in the current directory."
exit 1
fi
echo "Found $xcode_proj"
open $xcode_proj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment