scripts: Fix nsxiv-rifle to work with symlinks

This commit is contained in:
Marty Oehme 2022-10-08 17:54:24 +02:00
parent b8e97120d9
commit cb698090c6
Signed by: Marty
GPG key ID: 73BA40D5AFAF49C9

View file

@ -20,7 +20,7 @@ cleanup() {
}
from_local() {
fpath="$(realpath "$1")"
fpath="$(realpath -e "$1")"
ln -s "$fpath" "$cache_dir"
}
@ -71,5 +71,5 @@ while [ -n "$1" ]; do
shift
done
[ "$(find "$cache_dir" -type f -print | wc -l)" -ne 0 ] &&
[ "$(find -L "$cache_dir" -type f -print | wc -l)" -ne 0 ] &&
nsxiv -p "$cache_dir"