payload has to create directory before extraction
This commit is contained in:
parent
9c5341a976
commit
b0b25ba7ff
@ -9,6 +9,10 @@ else
|
||||
destdir="$XDG_CACHE_HOME"/tarinstall
|
||||
fi
|
||||
|
||||
if ! [ -d "$destdir" ]; then
|
||||
mkdir -p "$destdir"
|
||||
fi
|
||||
|
||||
if ! [ "$(head -n 1 "$destdir"/ID/checksum 2>/dev/null)" = 'SUM' ]; then
|
||||
tail -c +BYTES "$0" | lz4 -dc | tar -x -C "$destdir"
|
||||
echo "SUM" > "$destdir"/ID/checksum
|
||||
|
Loading…
Reference in New Issue
Block a user