From ff011db79e38855263345ebb99fb1059a7f270c2 Mon Sep 17 00:00:00 2001 From: Gustavo Arnosti Neves Date: Thu, 12 Apr 2018 06:07:41 -0300 Subject: [PATCH] v2.3.5 - fix grep method exit on adaptive method for some rare cases --- pdfScale.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pdfScale.sh b/pdfScale.sh index 3e67fc7..799ea1d 100755 --- a/pdfScale.sh +++ b/pdfScale.sh @@ -12,7 +12,7 @@ # And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a -VERSION="2.3.4" +VERSION="2.3.5" ###################### EXTERNAL PROGRAMS ####################### @@ -1377,9 +1377,10 @@ getPageSizeCatGrep() { # sanity if [[ $mbCount -lt 4 ]]; then - printError "Error when reading the page size!" - printError "The page size information is invalid!" - exit $EXIT_INVALID_PAGE_SIZE_DETECTED + if isNotAdaptiveMode; then + notAdaptiveFailed $'Error when reading the page size!\nThe page size information is invalid!' + fi + return $FALSE fi # we are done