From a20a728ef56f1a78c2bbbe7bb50fca1f428c7396 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 Dec 2017 12:52:15 -0500 Subject: [PATCH] bin/imgoptim: check feature check --- bin/imgoptim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/imgoptim b/bin/imgoptim index bda7df3a..00e3cc68 100755 --- a/bin/imgoptim +++ b/bin/imgoptim @@ -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