|
|
@ -9,6 +9,10 @@ else |
|
|
|
destdir="$XDG_CACHE_HOME"/tarinstall |
|
|
|
destdir="$XDG_CACHE_HOME"/tarinstall |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ! [ -d "$destdir" ]; then |
|
|
|
|
|
|
|
mkdir -p "$destdir" |
|
|
|
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
if ! [ "$(head -n 1 "$destdir"/ID/checksum 2>/dev/null)" = 'SUM' ]; then |
|
|
|
if ! [ "$(head -n 1 "$destdir"/ID/checksum 2>/dev/null)" = 'SUM' ]; then |
|
|
|
tail -c +BYTES "$0" | lz4 -dc | tar -x -C "$destdir" |
|
|
|
tail -c +BYTES "$0" | lz4 -dc | tar -x -C "$destdir" |
|
|
|
echo "SUM" > "$destdir"/ID/checksum |
|
|
|
echo "SUM" > "$destdir"/ID/checksum |
|
|
|