misc: nit

This commit is contained in:
Dylan Araps 2021-07-17 16:44:32 +03:00
parent 321af6f003
commit f5764dfc2d
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

4
kiss
View File

@ -751,12 +751,12 @@ pkg_tar() (
# NOTE: repo_ comes from caller.
log "$1" "Creating tarball"
_tar_file=$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS
# Use 'cd' to avoid needing tar's '-C' flag which may not be portable
# across implementations.
cd "$pkg_dir/$1"
_tar_file=$bin_dir/$1@$repo_ver-$repo_rel.tar.$KISS_COMPRESS
# Create a tarball from the contents of the built package.
tar cf - . | case $KISS_COMPRESS in
bz2) bzip2 -z ;;