mirror of
https://codeberg.org/kiss-community/kiss
synced 2025-01-10 21:00:07 -07:00
kiss: remove subshell from pkg_tar
This commit is contained in:
parent
83608d65c2
commit
0c687a0b2a
6
kiss
6
kiss
@ -744,7 +744,7 @@ pkg_etcsums() {
|
|||||||
done > "$pkg_dir/$1/$pkg_db/$1/etcsums"
|
done > "$pkg_dir/$1/$pkg_db/$1/etcsums"
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_tar() (
|
pkg_tar() {
|
||||||
# Create a tarball from the built package's files. This tarball also
|
# Create a tarball from the built package's files. This tarball also
|
||||||
# contains the package's database entry.
|
# contains the package's database entry.
|
||||||
#
|
#
|
||||||
@ -767,13 +767,15 @@ pkg_tar() (
|
|||||||
zst) zstd -z ;;
|
zst) zstd -z ;;
|
||||||
esac > "$_tar_file"
|
esac > "$_tar_file"
|
||||||
|
|
||||||
|
cd "$OLDPWD"
|
||||||
|
|
||||||
log "$1" "Successfully created tarball"
|
log "$1" "Successfully created tarball"
|
||||||
|
|
||||||
# arg1: post-package
|
# arg1: post-package
|
||||||
# arg2: package name
|
# arg2: package name
|
||||||
# arg3: path to tarball
|
# arg3: path to tarball
|
||||||
run_hook post-package "$1" "$_tar_file"
|
run_hook post-package "$1" "$_tar_file"
|
||||||
)
|
}
|
||||||
|
|
||||||
pkg_build_all() {
|
pkg_build_all() {
|
||||||
# Build packages and turn them into packaged tarballs.
|
# Build packages and turn them into packaged tarballs.
|
||||||
|
Loading…
Reference in New Issue
Block a user