aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-04 13:07:44 +0000
committermerakor <cem@ckyln.com>2020-05-04 13:07:44 +0000
commit957242876e04b2753f48b07671f991d676b1e810 (patch)
treeef46fa36e2066278803b1908ec64ed864c3ec05f
parentc6c419b36093ed390e54b39024467305da6b6f68 (diff)
downloadcpt-957242876e04b2753f48b07671f991d676b1e810.tar.gz
kiss: use option flags in 'tar' calls
FossilOrigin-Name: 138ea991b436fc765d194f85d738624203dea08d31c696c4c1e78c8b10d9c0f1
-rwxr-xr-xkiss8
1 files changed, 4 insertions, 4 deletions
diff --git a/kiss b/kiss
index 893cf38..8ed4e79 100755
--- a/kiss
+++ b/kiss
@@ -310,13 +310,13 @@ pkg_extract() {
# extraction. Other filetypes are simply copied to '$mak_dir'
# which allows for manual extraction.
*://*.tar|*://*.tar.??|*://*.tar.???|*://*.tar.????|*://*.tgz)
- decompress "$src_dir/$1/${src##*/}" | "$tar" xf - ||
+ decompress "$src_dir/$1/${src##*/}" | "$tar" -xf - ||
die "$1" "Couldn't extract ${src##*/}"
# Again, decompress but to 'tar tf -' this time. We get the
# base files in the package. We use this to do our version
# of 'strip-components'.
- decompress "$src_dir/$1/${src##*/}" | "$tar" tf - |
+ decompress "$src_dir/$1/${src##*/}" | "$tar" -tf - |
while read -r file; do
printf '%s\n' "${file%%/*}"
done | uniq |
@@ -564,7 +564,7 @@ pkg_tar() {
read -r version release < "$(pkg_find "$1")/version"
# Create a tarball from the contents of the built package.
- "$tar" cf - -C "$pkg_dir/$1" . |
+ "$tar" -cf - -C "$pkg_dir/$1" . |
case ${KISS_COMPRESS:=gz} in
bz2) bzip2 -z ;;
xz) xz -zT 0 ;;
@@ -1043,7 +1043,7 @@ pkg_install() {
log "$pkg_name" "Extracting $tar_file"
# Extract the tarball to catch any errors before installation begins.
- decompress "$tar_file" | "$tar" pxf - -C "$tar_dir/$pkg_name"
+ decompress "$tar_file" | "$tar" -pxf - -C "$tar_dir/$pkg_name"
[ -f "$tar_dir/$pkg_name/$pkg_db/$pkg_name/manifest" ] ||
die "'${tar_file##*/}' is not a valid KISS package"