about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-08-15 03:50:33 +0600
committerNRK <nrk@disroot.org>2021-08-15 03:50:33 +0600
commitc47c0f3216fddedfb8099adbb98eece41f8ec040 (patch)
tree8cebb534b12e73ce78893f3523e108815886a570
parentdc791089695a110623d9ca9ec84c9c39b6e31182 (diff)
downloadranger-c47c0f3216fddedfb8099adbb98eece41f8ec040.tar.gz
fix edge case when file is in root
-rwxr-xr-xexamples/rifle_sxiv.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh
index ba429e8d..d0b5058f 100755
--- a/examples/rifle_sxiv.sh
+++ b/examples/rifle_sxiv.sh
@@ -20,7 +20,7 @@
 # variable.
 
 listfiles () {
-    find -L "${target%/*}" -maxdepth 1 -type f -iregex \
+    find -L "///${target%/*}" -maxdepth 1 -type f -iregex \
       '.*\(jpe?g\|bmp\|png\|gif\|webp\)$' -print0 | sort -z
 }