about summary refs log tree commit diff stats
path: root/examples
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2021-09-19 01:54:00 +0600
committerNRK <nrk@disroot.org>2021-09-19 01:54:00 +0600
commit4451a87a2bf9b95afd566ddcaaa7ba548d1ec8dc (patch)
tree36e27d14f04f045e95bf71c4496a63dd666c8d3a /examples
parentd728452b0ffdb56de3ae642b848477a48f290740 (diff)
downloadranger-4451a87a2bf9b95afd566ddcaaa7ba548d1ec8dc.tar.gz
dont hardcode /tmp
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/rifle_sxiv.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/rifle_sxiv.sh b/examples/rifle_sxiv.sh
index f65524a8..e5b14db8 100755
--- a/examples/rifle_sxiv.sh
+++ b/examples/rifle_sxiv.sh
@@ -29,7 +29,8 @@
 # listfiles twice.
 
 
-tmp="/tmp/sxiv_rifle_$$"
+TMPDIR="${TMPDIR:-/tmp}"
+tmp="$TMPDIR/sxiv_rifle_$$"
 
 listfiles () {
     find -L "///${1%/*}" \( ! -path "///${1%/*}" -prune \) -type f -print |