]> git.sommitrealweird.co.uk Git - bpgallery.git/blobdiff - bpgallery.sh
Up version number for release
[bpgallery.git] / bpgallery.sh
index 4f421c9f0116765f7f1a99b59ccfb4ecf427cab9..c2a38700d543e06dba49e8e252807426641d4bc6 100755 (executable)
@@ -19,7 +19,7 @@
 
 set -f
 
 
 set -f
 
-VERSION="1.1.3"
+VERSION="1.1.4"
 
 function bpgallery_default_head() {
 cat <<END
 
 function bpgallery_default_head() {
 cat <<END
@@ -543,6 +543,10 @@ function check_dimensions() {
        wantedheight=$2
        dir=$3
        filename=$4
        wantedheight=$2
        dir=$3
        filename=$4
+       if [ ! -e "$dir/$filename" ]; then
+               echo 0
+               return
+       fi
        iconwidth=$($IDENTIFYCOMMAND -format "%wx%h" "$dir/$filename")
        iconheight=${iconwidth//*x}
        iconwidth=${iconwidth//x*}
        iconwidth=$($IDENTIFYCOMMAND -format "%wx%h" "$dir/$filename")
        iconheight=${iconwidth//*x}
        iconwidth=${iconwidth//x*}