From ed06faa056bcdbb32881958b99151896dfe41348 Mon Sep 17 00:00:00 2001 From: NRK Date: Fri, 27 Aug 2021 20:32:11 +0600 Subject: sxiv-rifle: handle unresolved `~` --- examples/rifle_sxiv.sh | 1 + 1 file changed, 1 insertion(+) 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 -- cgit 1.4.1-2-gfad0