From c26863f33e7ccd7edc699c2e5d2f04005f84cf73 Mon Sep 17 00:00:00 2001 From: Gustavo Neves Date: Sun, 14 May 2017 14:32:23 -0300 Subject: [PATCH] small fix to mdls fail detection --- pdfScale.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdfScale.sh b/pdfScale.sh index 5ffd14f..dd2128d 100755 --- a/pdfScale.sh +++ b/pdfScale.sh @@ -175,9 +175,9 @@ getPageSizeMdls() { identify=${identify//$'\t'/ } # change tab to space identify=($identify) # make it an array - if [[ "${identify[5]}" = "(null)" || "${identify[5]}" = "(null)" ]] && isNotAdaptiveMode; then + if [[ "${identify[5]}" = "(null)" || "${identify[2]}" = "(null)" ]] && isNotAdaptiveMode; then notAdaptiveFailed "There was no metadata to read from the file! Is Spotlight OFF?" - elif [[ "${identify[5]}" = "(null)" || "${identify[5]}" = "(null)" ]] && isAdaptiveMode; then + elif [[ "${identify[5]}" = "(null)" || "${identify[2]}" = "(null)" ]] && isAdaptiveMode; then return $FALSE fi