1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-22 23:20:06 -07:00

kiss: Store downloaded sources using dest if set #2. 5bbe895731

This commit is contained in:
Dylan Araps 2020-11-06 08:27:29 +02:00
parent b78fe36465
commit 16a9a4760b
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -261,7 +261,7 @@ pkg_extract() {
# 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
decompress "$src_dir/$1/${dest:-.}/${src##*/}" > .ktar
# Extract the tar archive to the current directory.
tar xf .ktar || die "$1" "Couldn't extract ${src##*/}"
@ -310,7 +310,7 @@ pkg_extract() {
# Zip archives.
*://*.zip)
unzip "$src_dir/$1/${src##*/}" ||
unzip "$src_dir/$1/${dest:-.}/${src##*/}" ||
die "$1" "Couldn't extract ${src##*/}"
;;