Skip to content

Commit

Permalink
try to account for dash in system call
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Thompson committed Jan 17, 2013
1 parent 36cabd7 commit 970d7e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/image_optim/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down

0 comments on commit 970d7e7

Please sign in to comment.