aboutsummaryrefslogtreecommitdiffstats
path: root/art/thumbs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'art/thumbs.sh')
-rwxr-xr-xart/thumbs.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/art/thumbs.sh b/art/thumbs.sh
index 758b0a9..3c1a633 100755
--- a/art/thumbs.sh
+++ b/art/thumbs.sh
@@ -28,9 +28,13 @@ for dir in $_img_dirs
do
cd "./$dir" || exit 1
- [ -d "$_thumbs_dir" ] || mkdir "$_thumbs_dir"
+ mkdir -p "$_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##*.}"