diff --git a/Library/Homebrew/brew.sh b/Library/Homebrew/brew.sh
index cbf39d0d7d1464496854200d1d5c4a2390194b0e..6189fac845739fd78d36a92be13ab783418813ff 100644
--- a/Library/Homebrew/brew.sh
+++ b/Library/Homebrew/brew.sh
@@ -165,7 +165,7 @@ EOS
     then
       odie <<EOS
 You have not agreed to the Xcode license. Please resolve this by running:
-  sudo xcodebuild -license
+  sudo xcodebuild -license accept
 EOS
     fi
   fi