From 335ebb661238481a69c530165ef343a8322db445 Mon Sep 17 00:00:00 2001 From: Nils Date: Sun, 6 Nov 2016 22:54:51 +0100 Subject: one more maxdepth --- gallery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gallery.sh b/gallery.sh index 505c653..ca3b8a8 100755 --- a/gallery.sh +++ b/gallery.sh @@ -101,7 +101,7 @@ cat > "$htmlfile" << EOF EOF ### Photos (JPG) -if [[ $(find . -type f -name \*.jpg | wc -l) -gt 0 ]]; then +if [[ $(find . -type f -name \*.jpg -maxdepth 1 | wc -l) -gt 0 ]]; then echo '
' >> "$htmlfile" ## Generate Images -- cgit v1.2.3