From 4451a87a2bf9b95afd566ddcaaa7ba548d1ec8dc Mon Sep 17 00:00:00 2001 From: NRK Date: Sun, 19 Sep 2021 01:54:00 +0600 Subject: dont hardcode /tmp --- examples/rifle_sxiv.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 | -- cgit 1.4.1-2-gfad0