summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNils <git@velohero.com>2016-11-06 22:54:51 +0100
committerNils <git@velohero.com>2016-11-06 22:54:51 +0100
commit335ebb661238481a69c530165ef343a8322db445 (patch)
tree3a7f0e569878d04a78b158bb4c25d7d79b6e9b4a
parent1f36fa7cc405e7e2af6946fe935b193694f6dca5 (diff)
one more maxdepth
-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