Selaa lähdekoodia

adding some randomness to temporary file

master
Gustavo Neves 8 vuotta sitten
vanhempi
commit
c2c4a12e8f
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. +3
    -1
      pdfScale.sh

+ 3
- 1
pdfScale.sh Näytä tiedosto

@@ -85,10 +85,12 @@ main() {
getPageSize
vPrintPageSizes ' Source'
local finalRet=$EXIT_ERROR
local tempFile=""
local tempSuffix="$RANDOM""_TEMP_$RANDOM.pdf"

if isMixedMode; then
outputFile="$OUTFILEPDF" # backup outFile name
tempFile="${OUTFILEPDF%.pdf}.__TEMP__.pdf" # set a temp file name
tempFile="${OUTFILEPDF%.pdf}.$tempSuffix" # set a temp file name
OUTFILEPDF="$tempFile" # set output to tmp file
pageResize # resize to tmp file
finalRet=$?


Ladataan…
Peruuta
Tallenna