diff options
| author | Jack Nagel | 2014-09-18 20:32:50 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-18 20:32:50 -0500 |
| commit | 56dd575f9603a75015fbdd4a7d7daea0c34a2cb9 (patch) | |
| tree | 342b61b5f2fb544a62686d5f95712005efb705ba /Library/Homebrew/utils.rb | |
| parent | 7a4e2fe24dd29d5f8780d494975509d3de39eed9 (diff) | |
| download | brew-56dd575f9603a75015fbdd4a7d7daea0c34a2cb9.tar.bz2 | |
Pass command and arg list into ErrorDuringExecution constructor
Diffstat (limited to 'Library/Homebrew/utils.rb')
| -rw-r--r-- | Library/Homebrew/utils.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index 293fe0d06..fa2f430e3 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -127,10 +127,7 @@ end # Kernel.system but with exceptions def safe_system cmd, *args - unless Homebrew.system cmd, *args - args = args.map{ |arg| arg.to_s.gsub " ", "\\ " } * " " - raise ErrorDuringExecution, "Failure while executing: #{cmd} #{args}" - end + Homebrew.system(cmd, *args) or raise ErrorDuringExecution.new(cmd, args) end # prints no output |
