aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xart/thumbs.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/art/thumbs.sh b/art/thumbs.sh
index 758b0a9..71be5b4 100755
--- a/art/thumbs.sh
+++ b/art/thumbs.sh
@@ -30,7 +30,11 @@ do
[ -d "$_thumbs_dir" ] || mkdir "$_thumbs_dir"
- _imgs="$(find . -maxdepth 1 -type f | cut -b 3-)"
+ _imgs="$(find . -maxdepth 1 \
+ -iname "*.jpg" -or \
+ -iname "*.jpeg" -or \
+ -iname "*.gif" -or \
+ -iname "*.png" -type f | cut -b 3-)"
for _img in $_imgs
do
_ext="${_img##*.}"