aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2015-01-15 15:46:35 +0000
committerMike McQuaid2015-01-15 15:46:35 +0000
commitcaa311a97b0974cb1b77e82c2c4976ea3e8eda7b (patch)
tree70f13619a4b514c32b6c3f3588ee9b5f29153ece
parent73f64ebf925adbb81467ec6d0ee4092e55c20424 (diff)
downloadhomebrew-caa311a97b0974cb1b77e82c2c4976ea3e8eda7b.tar.bz2
doctor: accepting the Xcode license requires sudo.
-rw-r--r--Library/Homebrew/cmd/doctor.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index d6d26006a..6239754da 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -1158,7 +1158,7 @@ end
if `/usr/bin/xcrun clang 2>&1` =~ /license/ and not $?.success? then <<-EOS.undent
You have not agreed to the Xcode license.
Builds will fail! Agree to the license by opening Xcode.app or running:
- xcodebuild -license
+ sudo xcodebuild -license
EOS
end
end