From 970d7e7869c700aed7b8fbdce13840cc9968ca3e Mon Sep 17 00:00:00 2001 From: Chris Thompson Date: Wed, 16 Jan 2013 18:46:47 -0600 Subject: [PATCH] try to account for dash in system call --- lib/image_optim/worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/image_optim/worker.rb b/lib/image_optim/worker.rb index f64e75f9..5879b3fe 100644 --- a/lib/image_optim/worker.rb +++ b/lib/image_optim/worker.rb @@ -63,7 +63,7 @@ def execute(bin, *arguments) env_path = "#{@image_optim.resolve_dir}:#{ENV['PATH']}" start = Time.now - system "env PATH=#{env_path.shellescape} nice -n #{@image_optim.nice} #{command} >& /dev/null" + system "env PATH=#{env_path.shellescape} nice -n #{@image_optim.nice} #{command} > /dev/null 2>&1" raise SignalException.new($?.termsig) if $?.signaled?