kiss: Support GNU tar as well
This commit is contained in:
parent
e7b88e7687
commit
423501106d
7
kiss
7
kiss
|
@ -1295,9 +1295,10 @@ main() {
|
||||||
# POSIX correctness.
|
# POSIX correctness.
|
||||||
grep=$(command -v ggrep) || grep='grep'
|
grep=$(command -v ggrep) || grep='grep'
|
||||||
|
|
||||||
# Prefer libarchive tar if installed as it is much much faster than
|
# Prefer libarchive tar or GNU tar if installed as they are much
|
||||||
# busybox's implementation. Very much worth it if you value performance.
|
# much faster than busybox's implementation. Very much worth it if
|
||||||
tar=$(command -v bsdtar) || tar='tar'
|
# 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
|
# Figure out which 'sudo' command to use based on the user's choice or
|
||||||
# what is available on the system.
|
# what is available on the system.
|
||||||
|
|
Loading…
Reference in New Issue