commit 4b3639d49f94f727ebb686cf4a19d1396681e7ae
parent 73d9957342778ac09ab4f17ef34c631de4d5c838
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Wed, 18 Nov 2020 16:10:13 +0100
sxiv: fix full path macro
Former-commit-id: f576226b838fc8ebfc3a2b30f931b652a902fdfd
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sxiv/exec/key-handler b/sxiv/exec/key-handler
@@ -1,10 +1,10 @@
#!/bin/sh
while read file; do
- fullpath="$(pwd)$file"
case "$1" in
"y")
printf "$file" | clc;;
"Y")
+ fullpath="$(realpath $file)"
printf "$fullpath" | clc;;
esac
done