changeset 41:8bc7566a9086

fixed a small bug if no valid filenames are mentioned
author meillo@marmaro.de
date Thu, 12 Jun 2008 22:01:48 +0200
parents 34b0ed40a879
children 8f69055cf7ed
files genwebgallery
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/genwebgallery	Thu Jun 05 21:29:03 2008 +0200
+++ b/genwebgallery	Thu Jun 12 22:01:48 2008 +0200
@@ -140,7 +140,7 @@
 
 # option processing
 
-while [ "$#" -ge 1 ] && [ `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"