From bef8a8f881d9e2e353a5619cb61903628f93b92e Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 7 Aug 2012 03:28:13 +0200 Subject: examples/rifle_sxiv.sh: fix symlink handling Previously, this would not work if the current working directory is a symlink. --- examples/rifle_sxiv.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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 } -- cgit 1.4.1-2-gfad0