diff options
-rwxr-xr-x | examples/rifle_sxiv.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh index 7148d92c..45a13f28 100755 --- a/examples/rifle_sxiv.sh +++ b/examples/rifle_sxiv.sh @@ -14,9 +14,8 @@ tmp="/tmp/sxiv_rifle_$$" listfiles () { - find -L "///${1%/*}" \( ! -path "///${1%/*}" -prune \) -type f \ - \( -iname '*.jpg' -o -iname '*.jpeg' -o -iname '*.png' -o -iname '*.gif' \ - -o -iname '*.webp' -o -iname '*.tiff' -o -iname '*.bmp' \) -print | + find -L "///${1%/*}" \( ! -path "///${1%/*}" -prune \) -type f | + grep -iE '\.(jpe?g|png|gif|webp|tiff|bmp)$' | sort | tee "$tmp" } |