aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-03-14 16:41:57 -0500
committerJack Nagel2014-03-14 16:41:57 -0500
commita867cb4305f075fdd2d86fd01c392df3c3761047 (patch)
treec90f7d80fa6f83d04b61605ec8e841be2d6eb837
parent251bd707a25cc81fbe54052f4d48134e1b19ea37 (diff)
downloadbrew-a867cb4305f075fdd2d86fd01c392df3c3761047.tar.bz2
Use Formula#system and existing error handling in scons helper
Fixes Homebrew/homebrew#27553.
-rw-r--r--Library/Homebrew/extend/fileutils.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb
index 70377483a..45b51b7f6 100644
--- a/Library/Homebrew/extend/fileutils.rb
+++ b/Library/Homebrew/extend/fileutils.rb
@@ -85,9 +85,7 @@ module FileUtils extend self
# Run scons using a Homebrew-installed version, instead of whatever
# is in the user's PATH
def scons *args
- scons = Formulary.factory("scons").opt_prefix/'bin/scons'
- raise "#{scons} is not executable" unless scons.exist? and scons.executable?
- safe_system scons, *args
+ system Formulary.factory("scons").opt_bin/"scons", *args
end
def rake *args