summary refs log tree commit diff stats
path: root/examples/rifle_sxiv.sh
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-08-07 03:28:13 +0200
committerhut <hut@lavabit.com>2012-08-07 03:28:13 +0200
commitbef8a8f881d9e2e353a5619cb61903628f93b92e (patch)
tree88f48e3214a84bee3b0aa3ca73c0c474a6768665 /examples/rifle_sxiv.sh
parent6c0ccee49a0113339a2603696755a880116efe97 (diff)
downloadranger-bef8a8f881d9e2e353a5619cb61903628f93b92e.tar.gz
examples/rifle_sxiv.sh: fix symlink handling
Previously, this would not work if the current working directory is a
symlink.
Diffstat (limited to 'examples/rifle_sxiv.sh')
-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 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
 }