Skip to content

Commit

Permalink
simpler determining presence of bin
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Jan 10, 2012
1 parent 12ca2c8 commit d1693f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/image_optim/worker.rb
Expand Up @@ -35,7 +35,7 @@ def underscored_name
def initialize(options = {})
get_option!(options, :bin, default_bin)
parse_options(options)
raise "`#{bin}` not found" unless Util.run('which', bin)
raise "`#{bin}` not found" if `which #{bin.to_s.shellescape}`.empty?
assert_options_empty!(options)
end

Expand Down

0 comments on commit d1693f6

Please sign in to comment.