aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-14 16:41:57 -0500
committerJack Nagel2014-03-14 16:41:57 -0500
commit3e3845fb46862831aef08c26c010bf6199c8f100 (patch)
treeba52f233369cac7a3fa22ad2a4e9b7b2d2ad62f1 /Library
parentbba68a4a298c14a239a83f8213d466e65393fb9c (diff)
downloadhomebrew-3e3845fb46862831aef08c26c010bf6199c8f100.tar.bz2
Use Formula#system and existing error handling in scons helper
Fixes #27553.
Diffstat (limited to 'Library')
-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