summaryrefslogtreecommitdiff
path: root/gallery.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gallery.sh')
-rwxr-xr-xgallery.sh2
1 files changed, 1 insertions, 1 deletions
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 '<div class="row">' >> "$htmlfile"
## Generate Images