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 wrap: on
line diff
--- a/genwebgallery	Sat Apr 19 21:20:37 2008 +0200
+++ b/genwebgallery	Sat Apr 19 21:52:52 2008 +0200
@@ -16,7 +16,7 @@
 index="index.html"
 sizePic=800
 sizeThumb=150
-galleryTitle="photo gallery"
+galleryTitle=""
 copyright=""
 
 
@@ -101,7 +101,7 @@
 
 
 usage() {
-	echo "usage: $PROGRAM [OPTIONS] FILES"
+	echo "usage: $PROGRAM [OPTIONS] PICTURES"
 	exit 1
 }
 
@@ -139,7 +139,7 @@
 
 # option processing
 
-while [  "$#" -ge 1  -a  `echo "$1" | awk '{print substr($0,1,1)}'` = '-'  ] ; do
+while [ "$#" -ge 1 ] && [ `echo "$1" | awk '{print substr($0,1,1)}'` = '-'  ] ; do
 	case $1 in
 		'--version')
 			echo "$PROGRAM version $VERSION"