scripts: Fix nsxiv-rifle to work with symlinks
This commit is contained in:
parent
b8e97120d9
commit
cb698090c6
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ cleanup() {
|
||||||
}
|
}
|
||||||
|
|
||||||
from_local() {
|
from_local() {
|
||||||
fpath="$(realpath "$1")"
|
fpath="$(realpath -e "$1")"
|
||||||
ln -s "$fpath" "$cache_dir"
|
ln -s "$fpath" "$cache_dir"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,5 +71,5 @@ while [ -n "$1" ]; do
|
||||||
shift
|
shift
|
||||||
done
|
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"
|
nsxiv -p "$cache_dir"
|
||||||
|
|
Loading…
Reference in a new issue