From a0fcdd90d17aaed65360dfc02a1231f80fbac5b5 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 24 Oct 2014 15:43:35 +0200 Subject: [PATCH] Do not hardcode convert path but use which instead (bis) --- ImageOptim.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImageOptim.sh b/ImageOptim.sh index dd5332d91..d0cbbcd16 100755 --- a/ImageOptim.sh +++ b/ImageOptim.sh @@ -12,7 +12,7 @@ fi CONVERT=$(which convert) CONVERTFILTER="-sharpen 1x0.0 -filter Catrom" -OPTIPNG=/opt/local/bin/optipng +OPTIPNG=$(which optipng) CMDS="${CONVERT} ${OPTIPNG}" for i in $CMDS; do command -v $i > /dev/null && continue || { echo "$i command not found"; exit 1; }