diff options
| -rwxr-xr-x | photoalbum.sh | 5 |
1 files 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 |
