genwebgallery
diff genwebgallery @ 47:d1ad806b6ee3
picsize and thumbsize are now numbers in any case (used printf); non-regular and non-existent files are skipped
author | meillo@marmaro.de |
---|---|
date | Mon, 23 Jun 2008 20:57:55 +0200 |
parents | b991e188f1fa |
children |
line diff
1.1 --- a/genwebgallery Mon Jun 23 20:05:50 2008 +0200 1.2 +++ b/genwebgallery Mon Jun 23 20:57:55 2008 +0200 1.3 @@ -202,12 +202,12 @@ 1.4 shift 1.5 ;; 1.6 '-ps' | '--pic-size') 1.7 - sizePic="$2" 1.8 + sizePic="`echo "$2" | awk '{printf("%d",$0)}'`" 1.9 shift 1.10 shift 1.11 ;; 1.12 '-ts' | '--thumb-size') 1.13 - sizeThumb="$2" 1.14 + sizeThumb="`echo "$2" | awk '{printf("%d",$0)}'`" 1.15 shift 1.16 shift 1.17 ;; 1.18 @@ -255,6 +255,13 @@ 1.19 fi 1.20 1.21 for i in "$@" ; do 1.22 + # skip over invalid files 1.23 + if [ ! -f "$i" ] ; then 1.24 + log "does not exist, or no regular file: $i" 1.25 + log " skipping" 1.26 + continue 1.27 + fi 1.28 + 1.29 file="`basename $i`" 1.30 targetFile="$targetDir/$file.htm" 1.31 log "processing file: $file"