forked from kiss-community/kiss
kiss: add back explicit errors
This commit is contained in:
parent
7e8ced253d
commit
4b7ad1227d
6
kiss
6
kiss
@ -343,10 +343,12 @@ pkg_extract() {
|
|||||||
*.tar|*.tar.??|*.tar.???|*.tar.????|*.t?z)
|
*.tar|*.tar.??|*.tar.???|*.tar.????|*.t?z)
|
||||||
# This is a portable shell implementation of GNU tar's
|
# This is a portable shell implementation of GNU tar's
|
||||||
# '--strip-components 1'.
|
# '--strip-components 1'.
|
||||||
decompress "$_res" > .ktar
|
decompress "$_res" > .ktar ||
|
||||||
|
die "$1" "Failed to decompress $_res"
|
||||||
|
|
||||||
# Extract the tar archive to the current directory.
|
# 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
|
# Iterate over all directories in the first level of the
|
||||||
# tarball's manifest.
|
# tarball's manifest.
|
||||||
|
Loading…
Reference in New Issue
Block a user