bin/imgoptim: check feature check

This commit is contained in:
Henrik Lissner 2017-12-26 12:52:15 -05:00
parent b903465759
commit a20a728ef5
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -47,7 +47,7 @@ shift $((OPTIND-1))
cmds=( optipng jpegtran gifsicle )
[[ $lossy ]] && cmds=( $cmds pngquant jpegoptim )
for cmd in "optipng jpegtran gifsicle"; do
for cmd in ${cmds[@]}; do
if ! command -v $cmd >/dev/null; then
>&2 echo "$cmd isn't installed"
error=1