1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 16:40:07 -07:00

kiss: Support GNU tar as well

This commit is contained in:
Dylan Araps 2020-02-05 01:33:24 +02:00
parent e7b88e7687
commit 423501106d
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

7
kiss
View File

@ -1295,9 +1295,10 @@ main() {
# POSIX correctness.
grep=$(command -v ggrep) || grep='grep'
# Prefer libarchive tar if installed as it is much much faster than
# busybox's implementation. Very much worth it if you value performance.
tar=$(command -v bsdtar) || tar='tar'
# Prefer libarchive tar or GNU tar if installed as they are much
# much faster than busybox's implementation. Very much worth it if
# you value performance.
tar=$(command -v bsdtar || command -v gtar) || tar='tar'
# Figure out which 'sudo' command to use based on the user's choice or
# what is available on the system.