diff options
author | NRK <nrk@disroot.org> | 2021-08-15 03:50:33 +0600 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2021-08-15 03:50:33 +0600 |
commit | c47c0f3216fddedfb8099adbb98eece41f8ec040 (patch) | |
tree | 8cebb534b12e73ce78893f3523e108815886a570 | |
parent | dc791089695a110623d9ca9ec84c9c39b6e31182 (diff) | |
download | ranger-c47c0f3216fddedfb8099adbb98eece41f8ec040.tar.gz |
fix edge case when file is in root
-rwxr-xr-x | examples/rifle_sxiv.sh | 2 |
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 } |