diff options
author | NRK <nrk@disroot.org> | 2021-09-19 01:54:00 +0600 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2021-09-19 01:54:00 +0600 |
commit | 4451a87a2bf9b95afd566ddcaaa7ba548d1ec8dc (patch) | |
tree | 36e27d14f04f045e95bf71c4496a63dd666c8d3a /examples | |
parent | d728452b0ffdb56de3ae642b848477a48f290740 (diff) | |
download | ranger-4451a87a2bf9b95afd566ddcaaa7ba548d1ec8dc.tar.gz |
dont hardcode /tmp
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/rifle_sxiv.sh | 3 |
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 | |