]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
braille: Fix support for empty pageranges 13/head
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 18 Dec 2017 09:37:47 +0000 (10:37 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 18 Dec 2017 09:37:47 +0000 (10:37 +0100)
filter/braille/filters/brftopagedbrf.in

index 138c900e58a1cbaa0c1399f6a5701fcfcea1f94f..322b56dfef39c46106afc8a3716d5150c8f73968 100755 (executable)
@@ -44,6 +44,8 @@ PAGES=" "   # Explicit list of pages
 AFTER=      # All pages including and after this
 BEFORE=     # All pages before and including this
 
+[ -n "$PAGERANGES" ] || PAGERANGES="1-"
+
 while [ -n "${PAGERANGES}" ]
 do
   PAGERANGE=${PAGERANGES/,*}