This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Make xcrun wrapper search /usr/bin too

The usual xcrun would, and this wrapper exists to also work around broken xcode-select paths.
  • Loading branch information...
mxcl authored and Dennis Luxen committed Sep 13, 2012
1 parent e09b32b commit 6c2120f37495ec76e454da3500abf8e62d042a99
Showing with 3 additions and 1 deletion.
  1. +3 −1 Library/ENV/4.3/xcrun
View
@@ -14,7 +14,7 @@ if [ $HOMEBREW_SDKROOT ]; then
exec /usr/bin/xcrun "$arg0" "$@";;
esac
- path=$(/usr/bin/xcrun -find $arg0)
+ path="$(/usr/bin/xcrun -find $arg0)"
[ -x "$path" ] && exec "$path" "$@"
# Nuts, Xcode is not setup properly or something.
@@ -23,6 +23,8 @@ if [ $HOMEBREW_SDKROOT ]; then
[ -x "$path" ] && exec "$path" "$@"
path="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/$arg0"
[ -x "$path" ] && exec "$path" "$@"
+ path="/usr/bin/$arg0"
+ [ -x "$path" ] && exec "$path" "$@"
echo "Your Xcode setup is not ready. You need to either:"
echo " sudo xcode-select -switch /path/to/Xcode.app"

0 comments on commit 6c2120f

Please sign in to comment.