From 88a520d2109c0780812a2aceb8c53daa3928efc9 Mon Sep 17 00:00:00 2001 From: Gustavo Neves Date: Tue, 21 Feb 2017 06:12:26 -0300 Subject: [PATCH] v1.2.9 only tries to get identify's binary if running in -i mode, just more optimal --- pdfScale.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdfScale.sh b/pdfScale.sh index 7cf811f..b072539 100755 --- a/pdfScale.sh +++ b/pdfScale.sh @@ -11,7 +11,7 @@ # And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a -VERSION="1.2.7" +VERSION="1.2.9" SCALE="0.95" # scaling factor (0.95 = 95%, e.g.) VERBOSE=0 # verbosity Level BASENAME="$(basename $0)" # simplified name of this script @@ -221,13 +221,13 @@ command -v bc >/dev/null 2>&1 || printDependency 'bc' if [[ $USEIMGMGK -eq $TRUE ]]; then vprint "Checking for imagemagick's identify" command -v identify >/dev/null 2>&1 || printDependency 'imagemagick' + IDBIN=$(which identify 2>/dev/null) fi # Get dependency binaries GSBIN=$(which gs 2>/dev/null) BCBIN=$(which bc 2>/dev/null) -IDBIN=$(which identify 2>/dev/null) # Verbose scale info