about summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-08-27 20:32:11 +0600
committerNRK <nrk@disroot.org>2021-08-27 20:32:11 +0600
commited06faa056bcdbb32881958b99151896dfe41348 (patch)
tree2af3b8697c04179fe1458fbd3ae38a9fa8c65e87 /examples
parentb9e627547757ba04b6961e2aaf569f1f3102a1eb (diff)
downloadranger-ed06faa056bcdbb32881958b99151896dfe41348.tar.gz
sxiv-rifle: handle unresolved `~`
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/rifle_sxiv.sh1
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