impagina: quote variables to prevent splitting

removeproofs
Francesco Minnocci 3 years ago
parent 3af04808ba
commit aab4c53501
Signed by: BachoSeven
GPG Key ID: 2BE4AB7FDAD828A4

@ -10,7 +10,7 @@ n="$(pdftk "$input" dump_data | grep NumberOfPages | cut -d' ' -f2)"
# Add empty pages # Add empty pages
echo .bp | groff -T pdf > "$empty" echo .bp | groff -T pdf > "$empty"
pdftk F=$input E="$empty" cat F1-$n $(for x in $(seq 1 $((4-n%4))); do printf 'E1 '; done) output $inputMul4 pdftk F="$input" E="$empty" cat F1-$n "$(for x in $(seq 1 $((4-n%4))); do printf 'E1 '; done)" output "$inputMul4"
# Generate alternating page ranges # Generate alternating page ranges
n=$((n+(4-n%4))) n=$((n+(4-n%4)))

Loading…
Cancel
Save