aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-23 06:36:05 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2019-09-23 06:36:05 +0000
commiteb8a4889f96d75b02fe074917ac5555814c3db02 (patch)
tree1e1fd55f31898d8f8fef2333182afbdc16698d9d /kiss
parentfe2fa18317866ed96c0de4badda0ba0e4de20b83 (diff)
downloadcpt-eb8a4889f96d75b02fe074917ac5555814c3db02.tar.gz
kiss: add back support for tgz archives (y lvm2 y)
FossilOrigin-Name: ede9a9180b5d63dfd69b9e76f7da3b83f9f47bf149abf433cf703df31962ab5f
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index cfb280f..a46989b 100755
--- a/kiss
+++ b/kiss
@@ -166,7 +166,7 @@ pkg_extract() {
# Only 'tar' archives are currently supported for extraction.
# Any other file-types are simply copied to '$mak_dir' which
# allows for manual extraction.
- if [ -z "${src##*.tar*}" ]; then
+ if [ -z "${src##*.tar*}" ] || [ -z "${src##*.tgz}" ]; then
tar xf "$src_dir/$1/${src##*/}" --strip-components 1 \
|| die "$1" "Couldn't extract ${src##*/}"