From 5699eb6df8d2c8c4edb2be6db73cd8217e6d828f Mon Sep 17 00:00:00 2001 From: "Paul Buetow (mars.fritz.box)" Date: Sun, 22 Dec 2013 12:23:21 +0100 Subject: fix bugs --- photoalbum.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/photoalbum.sh b/photoalbum.sh index 93ffbff..215a8c5 100755 --- a/photoalbum.sh +++ b/photoalbum.sh @@ -49,12 +49,11 @@ function generate () { cd photos && find ./ -iname \*.jpg | sort | sed 's;^\./;;' | while read jpg; do - - (( i++ )) + : $(( i++ )) if [ $i -gt $MAXPREVIEWS ]; then i=1 - (( num++ )) + : $(( num++ )) next=page-${num} template next $name -- cgit v1.2.3