aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-09-13 16:59:16 -0400
committerMax Howell2012-09-13 17:00:02 -0400
commite5916e8923f1a0bd2ba8750c813d85b674bd9dfc (patch)
tree71c3778dc91bf4a5c53b292f26633560cc54e4b1 /Library
parent728fe7e637c6f1b7775f9b7af09b089c6020260b (diff)
downloadhomebrew-e5916e8923f1a0bd2ba8750c813d85b674bd9dfc.tar.bz2
Make xcrun wrapper search /usr/bin too
The usual xcrun would, and this wrapper exists to also work around broken xcode-select paths.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/ENV/4.3/xcrun4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/ENV/4.3/xcrun b/Library/ENV/4.3/xcrun
index d6f4e84a0..453042f6b 100755
--- a/Library/ENV/4.3/xcrun
+++ b/Library/ENV/4.3/xcrun
@@ -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"