@ -9,6 +9,10 @@ else
destdir="$XDG_CACHE_HOME"/tarinstall
fi
if ! [ -d "$destdir" ]; then
mkdir -p "$destdir"
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