about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-08-27 14:12:37 +0000
committerGitHub <noreply@github.com>2021-08-27 14:12:37 +0000
commitb9e627547757ba04b6961e2aaf569f1f3102a1eb (patch)
treea35e53e581b8c67ccb10e07ba2f10ff40d92de3c
parentc09d4a846ccf635579ef3cb3e55d20478fb07438 (diff)
downloadranger-b9e627547757ba04b6961e2aaf569f1f3102a1eb.tar.gz
change func name to is_img
Co-authored-by: toonn <toonn@toonn.io>
-rwxr-xr-xexamples/rifle_sxiv.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh
index 15fc914f..6d87d2ad 100755
--- a/examples/rifle_sxiv.sh
+++ b/examples/rifle_sxiv.sh
@@ -24,7 +24,7 @@ listfiles () {
       '.*\(jpe?g\|bmp\|png\|gif\|webp\)$' -print0 | sort -z
 }
 
-ispic () {
+is_img () {
     case "${1##*.}" in
         "jpg"|"jpeg"|"bmp"|"png"|"gif"|"webp") return 0 ;;
         *) return 1 ;;
@@ -38,7 +38,7 @@ case "$1" in
     *)  target="$PWD/$1" ;;
 esac
 
-ispic "$target" && count="$(listfiles | grep -m 1 -ZznF "$target")"
+is_img "$target" && count="$(listfiles | grep -m 1 -ZznF "$target")"
 
 if [ -n "$count" ]; then
     listfiles | xargs -0 sxiv -n "${count%%:*}" --