1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-09-26 11:24:28 -06:00

kiss: add back explicit errors

This commit is contained in:
Dylan Araps 2021-07-04 12:50:50 +00:00
parent 7e8ced253d
commit 4b7ad1227d
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

6
kiss
View File

@ -343,10 +343,12 @@ pkg_extract() {
*.tar|*.tar.??|*.tar.???|*.tar.????|*.t?z)
# This is a portable shell implementation of GNU tar's
# '--strip-components 1'.
decompress "$_res" > .ktar
decompress "$_res" > .ktar ||
die "$1" "Failed to decompress $_res"
# Extract the tar archive to the current directory.
tar xf .ktar
tar xf .ktar ||
die "$1" "Failed to extract $_res"
# Iterate over all directories in the first level of the
# tarball's manifest.