mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-23 07:30:16 -07:00
kiss: Store downloaded sources using dest if set #2. 5bbe895731
This commit is contained in:
parent
b78fe36465
commit
16a9a4760b
4
kiss
4
kiss
@ -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##*/}"
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user