Skip to content

Commit

Permalink
-s option of which command is custom and should not be used, closes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Jan 16, 2013
1 parent de7698b commit 049b56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/image_optim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def apply_threading(array)

# Check if bin can be accessed
def bin_accessible?(bin)
system(*%W[which -s #{bin}])
`which #{bin.to_s.shellescape}` != ''
end

# http://stackoverflow.com/questions/891537/ruby-detect-number-of-cpus-installed
Expand Down

0 comments on commit 049b56a

Please sign in to comment.