mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
kiss: support uncompressed tar archives
This commit is contained in:
parent
1933a19e10
commit
1c31b264df
4
kiss
4
kiss
@ -142,6 +142,7 @@ decompress() {
|
|||||||
*.xz) xz -dcT 0 ;;
|
*.xz) xz -dcT 0 ;;
|
||||||
*.tgz|*.gz) gzip -d ;;
|
*.tgz|*.gz) gzip -d ;;
|
||||||
*.zst) zstd -dc ;;
|
*.zst) zstd -dc ;;
|
||||||
|
*.tar) cat ;;
|
||||||
esac < "$1"
|
esac < "$1"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -394,7 +395,8 @@ pkg_extract() {
|
|||||||
# which allows for manual extraction.
|
# which allows for manual extraction.
|
||||||
*://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz)
|
*://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz)
|
||||||
decompress "$src_dir/$1/${src##*/}" |
|
decompress "$src_dir/$1/${src##*/}" |
|
||||||
"$tar" xf - --strip-components 1 ||
|
|
||||||
|
"$tar" xf - --strip-components 1 ||
|
||||||
die "$1" "Couldn't extract ${src##*/}"
|
die "$1" "Couldn't extract ${src##*/}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user