Browse Source

v2.0.1 Prints dependency checks before tasks in verbose execution

master
Gustavo Neves 8 years ago
parent
commit
32c27116cc
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      pdfScale.sh

+ 2
- 2
pdfScale.sh View File

@@ -12,7 +12,7 @@
# And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a # And: https://gist.github.com/MichaelJCole/86e4968dbfc13256228a




VERSION="2.0.0"
VERSION="2.0.1"




###################### EXTERNAL PROGRAMS ####################### ###################### EXTERNAL PROGRAMS #######################
@@ -78,7 +78,6 @@ EXIT_INVALID_PAPER_SIZE=50


# Main function called at the end # Main function called at the end
main() { main() {
checkDeps
printPDFSizes printPDFSizes
vprint " Input File: $INFILEPDF" vprint " Input File: $INFILEPDF"
vprint " Output File: $OUTFILEPDF" vprint " Output File: $OUTFILEPDF"
@@ -315,6 +314,7 @@ getOptions() {
isFile "$INFILEPDF" || initError "Input file not found: $INFILEPDF" $EXIT_FILE_NOT_FOUND isFile "$INFILEPDF" || initError "Input file not found: $INFILEPDF" $EXIT_FILE_NOT_FOUND
printVersion 1 'verbose' printVersion 1 'verbose'
checkDeps
if isMixedMode; then if isMixedMode; then
vprint " Mixed Tasks: Resize & Scale" vprint " Mixed Tasks: Resize & Scale"
isEmpty "$2" && OUTFILEPDF="${INFILEPDF%.pdf}.$(uppercase $RESIZE_PAPER_TYPE).SCALED.pdf" isEmpty "$2" && OUTFILEPDF="${INFILEPDF%.pdf}.$(uppercase $RESIZE_PAPER_TYPE).SCALED.pdf"


Loading…
Cancel
Save