From d06c02273dde5a556b538a31d21d52279d32d7ae Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Fri, 24 Oct 2014 15:42:09 +0200 Subject: [PATCH] Do not hardcode convert path but use which instead --- ImageOptim.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ImageOptim.sh b/ImageOptim.sh index 543d62d61..dd5332d91 100755 --- a/ImageOptim.sh +++ b/ImageOptim.sh @@ -10,7 +10,7 @@ if [ "$CONFIGURATION" == "Debug" ]; then exit 0 fi -CONVERT=/opt/local/bin/convert +CONVERT=$(which convert) CONVERTFILTER="-sharpen 1x0.0 -filter Catrom" OPTIPNG=/opt/local/bin/optipng CMDS="${CONVERT} ${OPTIPNG}" @@ -78,4 +78,4 @@ for PNG in $PNGS; do done # make sure we dont over-optimize -touch $DIR/optimized \ No newline at end of file +touch $DIR/optimized