diff --git a/Library/Homebrew/extend/fileutils.rb b/Library/Homebrew/extend/fileutils.rb index 70377483a1..45b51b7f63 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