diff options
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 |
