From 9c5341a976b71c756969871915f6cddc672ecfc5 Mon Sep 17 00:00:00 2001 From: Alessandro Mauri Date: Sun, 23 Aug 2020 15:50:56 +0200 Subject: [PATCH] paylad extracts in dedicated directory the payload now extracts into either /tmp/tarinstall or $XDG_CACHE_HOME/tarinstall in order to avoid conflicts --- posix/payload | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posix/payload b/posix/payload index 6adafff..aad4149 100755 --- a/posix/payload +++ b/posix/payload @@ -4,9 +4,9 @@ # TODO: extract self without resolving to $0 because it doesn't resolve links if [ -z "$XDG_CACHE_HOME" ]; then - destdir=/tmp + destdir=/tmp/tarinstall else - destdir="$XDG_CACHE_HOME" + destdir="$XDG_CACHE_HOME"/tarinstall fi if ! [ "$(head -n 1 "$destdir"/ID/checksum 2>/dev/null)" = 'SUM' ]; then