Do not hardcode convert path but use which instead

This commit is contained in:
Gautier Pelloux-Prayer 2014-10-24 15:42:09 +02:00
parent 4f5ef86508
commit d06c02273d

View file

@ -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
touch $DIR/optimized