diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-22 12:23:21 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-22 12:23:21 +0100 |
| commit | 5699eb6df8d2c8c4edb2be6db73cd8217e6d828f (patch) | |
| tree | b81de1012e665915b68f39443f72cabb1ede04d7 | |
| parent | 21a4bd6feee001e676db7526a7a5598b8ddcbdb7 (diff) | |
fix bugs
| -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 |
