diff options
author | NRK <nrk@disroot.org> | 2021-08-27 20:32:11 +0600 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2021-08-27 20:32:11 +0600 |
commit | ed06faa056bcdbb32881958b99151896dfe41348 (patch) | |
tree | 2af3b8697c04179fe1458fbd3ae38a9fa8c65e87 | |
parent | b9e627547757ba04b6961e2aaf569f1f3102a1eb (diff) | |
download | ranger-ed06faa056bcdbb32881958b99151896dfe41348.tar.gz |
sxiv-rifle: handle unresolved `~`
-rwxr-xr-x | examples/rifle_sxiv.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh index 6d87d2ad..8388fa10 100755 --- a/examples/rifle_sxiv.sh +++ b/examples/rifle_sxiv.sh @@ -35,6 +35,7 @@ is_img () { case "$1" in "") echo "Usage: ${0##*/} PICTURES" >/dev/stderr && exit ;; /*) target="$1" ;; + "~"/*) target="$HOME/${1#"~"/}" ;; *) target="$PWD/$1" ;; esac |