paylad extracts in dedicated directory

the payload now extracts into either /tmp/tarinstall or
$XDG_CACHE_HOME/tarinstall in order to avoid conflicts
This commit is contained in:
Alessandro Mauri 2020-08-23 15:50:56 +02:00
parent 2117ad85ab
commit 9c5341a976

View File

@ -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