genwebgallery
diff genwebgallery @ 16:84c08287caa1
fixed bug when called without arguments; minor stuff
author | meillo@marmaro.de |
---|---|
date | Sat, 19 Apr 2008 21:52:52 +0200 |
parents | 326bcd4e1708 |
children | 7f3cea97b789 |
line diff
1.1 --- a/genwebgallery Sat Apr 19 21:20:37 2008 +0200 1.2 +++ b/genwebgallery Sat Apr 19 21:52:52 2008 +0200 1.3 @@ -16,7 +16,7 @@ 1.4 index="index.html" 1.5 sizePic=800 1.6 sizeThumb=150 1.7 -galleryTitle="photo gallery" 1.8 +galleryTitle="" 1.9 copyright="" 1.10 1.11 1.12 @@ -101,7 +101,7 @@ 1.13 1.14 1.15 usage() { 1.16 - echo "usage: $PROGRAM [OPTIONS] FILES" 1.17 + echo "usage: $PROGRAM [OPTIONS] PICTURES" 1.18 exit 1 1.19 } 1.20 1.21 @@ -139,7 +139,7 @@ 1.22 1.23 # option processing 1.24 1.25 -while [ "$#" -ge 1 -a `echo "$1" | awk '{print substr($0,1,1)}'` = '-' ] ; do 1.26 +while [ "$#" -ge 1 ] && [ `echo "$1" | awk '{print substr($0,1,1)}'` = '-' ] ; do 1.27 case $1 in 1.28 '--version') 1.29 echo "$PROGRAM version $VERSION"