From 74ed4988c9fccbae20f6bb433f0111afefac7128 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 23 May 2020 09:30:45 +0300 Subject: [PATCH] docs: update --- kiss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index e322832..a633c95 100755 --- a/kiss +++ b/kiss @@ -317,16 +317,20 @@ pkg_extract() { ;; # Git repository, comment or blank line. - git+*|\#*|'') continue ;; + git+*|\#*|'') ;; # Tarballs of any kind. This is a shell equivalent of # GNU tar's '--strip-components 1'. *://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.t?z) + # Decompress the archive to a temporary .tar archive. decompress "$src_dir/$1/${src##*/}" > .ktar - tar xf .ktar || - die "$1" "Couldn't extract ${src##*/}" + # Extract the tar archive to the current directory. + tar xf .ktar || die "$1" "Couldn't extract ${src##*/}" + # Iterate over all directories in the first level of the + # tarball's manifest. This is our equivalent of GNU tar's + # '--strip-components 1'. tar tf .ktar | while IFS=/ read -r dir _; do # Some tarballs contain './' as the top-level directory, # we need to skip these occurances.