bin/imgoptim: check feature check
This commit is contained in:
parent
b903465759
commit
a20a728ef5
|
@ -47,7 +47,7 @@ shift $((OPTIND-1))
|
||||||
|
|
||||||
cmds=( optipng jpegtran gifsicle )
|
cmds=( optipng jpegtran gifsicle )
|
||||||
[[ $lossy ]] && cmds=( $cmds pngquant jpegoptim )
|
[[ $lossy ]] && cmds=( $cmds pngquant jpegoptim )
|
||||||
for cmd in "optipng jpegtran gifsicle"; do
|
for cmd in ${cmds[@]}; do
|
||||||
if ! command -v $cmd >/dev/null; then
|
if ! command -v $cmd >/dev/null; then
|
||||||
>&2 echo "$cmd isn't installed"
|
>&2 echo "$cmd isn't installed"
|
||||||
error=1
|
error=1
|
||||||
|
|
Loading…
Reference in a new issue