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
1 changed files with 2 additions and 2 deletions

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"