aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-04 23:33:24 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-04 23:33:24 +0000
commita20d3db989a5ee3b7f99df68b7e3c37a025381c8 (patch)
tree0f0d4334cf0da19bfc750bc543981e062bb1ed62
parent3f42c1c8dfe18acda4c0331a34d036137d17aa70 (diff)
downloadcpt-a20d3db989a5ee3b7f99df68b7e3c37a025381c8.tar.gz
kiss: Support GNU tar as well
FossilOrigin-Name: 197aa71d2e706ed33dc6e0b07544d0e7c7de2c09a34d9d87c22e466963ec8920
-rwxr-xr-xkiss7
1 files changed, 4 insertions, 3 deletions
diff --git a/kiss b/kiss
index addf7ed..8735766 100755
--- a/kiss
+++ b/kiss
@@ -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.