diff options
author | hut <hut@lavabit.com> | 2012-08-07 03:28:13 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2012-08-07 03:28:13 +0200 |
commit | bef8a8f881d9e2e353a5619cb61903628f93b92e (patch) | |
tree | 88f48e3214a84bee3b0aa3ca73c0c474a6768665 | |
parent | 6c0ccee49a0113339a2603696755a880116efe97 (diff) | |
download | ranger-bef8a8f881d9e2e353a5619cb61903628f93b92e.tar.gz |
examples/rifle_sxiv.sh: fix symlink handling
Previously, this would not work if the current working directory is a symlink.
-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 5eb52fc0..efa935b2 100755 --- a/examples/rifle_sxiv.sh +++ b/examples/rifle_sxiv.sh @@ -13,7 +13,7 @@ [ "$1" == '--' ] && shift target="$(realpath -s "$1")" function listfiles { - find "$(dirname "$target")" -maxdepth 1 -type f -iregex \ + find -L "$(dirname "$target")" -maxdepth 1 -type f -iregex \ '.*\(jpe?g\|bmp\|png\|gif\)$' -print0 | sort -z } |