You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to optimize a picture, image_optim failed because /usr/bin/which was not present on the system. Is it possible that Gem would check if /usr/bin/which exists so that it can install only if this dependency is satisfied?
The text was updated successfully, but these errors were encountered:
Do you mean not installing gem if which is not present?
Looking at stackoverflow question it seems better to avoid which. Also it seems that it would be best to use version method which should return empty string if binary is not present.
Exactly. The code that requires which is lib/image_optim/config.rblib/image_optim/binary_resolver.rb and on some systems which isn't provided by default. The user has to install it on their own. If you're planning on replacing which with builtin bash functions, then #59 will become a non-issue as soon as that happens. Confirming that it's fixed.
While trying to optimize a picture, image_optim failed because /usr/bin/which was not present on the system. Is it possible that Gem would check if /usr/bin/which exists so that it can install only if this dependency is satisfied?
The text was updated successfully, but these errors were encountered: