From 36719f478f6ea2ebf5035be46ec151ee5c32b2de Mon Sep 17 00:00:00 2001 From: Gustavo Neves Date: Tue, 16 May 2017 16:10:46 -0300 Subject: [PATCH] v2.0.4 - Fix to final status, missing $ in $finalRet --- pdfScale.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdfScale.sh b/pdfScale.sh index a2104e3..3343ba7 100755 --- a/pdfScale.sh +++ b/pdfScale.sh @@ -12,7 +12,7 @@ # And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a -VERSION="2.0.3" +VERSION="2.0.4" ###################### EXTERNAL PROGRAMS ####################### @@ -78,7 +78,7 @@ EXIT_INVALID_PAPER_SIZE=50 # Main function called at the end main() { - printPDFSizes + printPDFSizes # may exit here vprint " Input File: $INFILEPDF" vprint " Output File: $OUTFILEPDF" getPageSize @@ -119,7 +119,7 @@ main() { finalRet=$? fi - if [[ finalRet -eq $EXIT_SUCCESS ]]; then + if [[ $finalRet -eq $EXIT_SUCCESS ]]; then vprint " Final Status: File created successfully" else vprint " Final Status: Errors were detected. Exit status: $finalRet"