From 423501106d7bf787f5c50426bd739f6f90be7888 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 5 Feb 2020 01:33:24 +0200 Subject: [PATCH] kiss: Support GNU tar as well --- kiss | 7 ++++--- 1 file 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.