From a867cb4305f075fdd2d86fd01c392df3c3761047 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 14 Mar 2014 16:41:57 -0500 Subject: Use Formula#system and existing error handling in scons helper Fixes Homebrew/homebrew#27553. --- Library/Homebrew/extend/fileutils.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Library/Homebrew') 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 -- cgit v1.2.3