From e24c70fab858065229c0912c6ce6743954416188 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Fri, 3 Jun 2022 14:59:16 +0200 Subject: [PATCH] Fix --- impagina | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impagina b/impagina index 834a784..db2ad3e 100755 --- a/impagina +++ b/impagina @@ -10,7 +10,7 @@ n="$(pdftk "$input" dump_data | grep NumberOfPages | cut -d' ' -f2)" # Add empty pages 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 n=$((n+(4-n%4)))