Skip to content

Commit

Permalink
fix(kuma-cp): don't tar up ./ (#4662)
Browse files Browse the repository at this point in the history
fix(kuma-cp) don't tar up ./

Signed-off-by: Paul Parkanzky <paul.parkanzky@konghq.com>
  • Loading branch information
Paul A. Parkanzky authored Jul 28, 2022
1 parent ced853f commit 164791f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tools/releases/distros.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ function create_kumactl_tarball() {
make GOOS="$system" GOARCH="$arch" build/kumactl

local dest_dir=build/$RELEASE_NAME-$arch
local kuma_dir=$dest_dir/$RELEASE_NAME-$KUMA_VERSION
local kuma_subdir="$RELEASE_NAME-$KUMA_VERSION"
local kuma_dir=$dest_dir/$kuma_subdir

rm -rf "$dest_dir"
mkdir "$dest_dir"
Expand All @@ -68,7 +69,7 @@ function create_kumactl_tarball() {

archive_path=$(archive_path "$arch" "$system")

tar -czf "${archive_path}" -C "$dest_dir" .
tar -czf "${archive_path}" -C "$dest_dir" "$kuma_subdir"
}

function create_tarball() {
Expand All @@ -83,7 +84,8 @@ function create_tarball() {
make GOOS="$system" GOARCH="$arch" build

local dest_dir=build/$RELEASE_NAME-$distro-$arch
local kuma_dir=$dest_dir/$RELEASE_NAME-$KUMA_VERSION
local kuma_subdir="$RELEASE_NAME-$KUMA_VERSION"
local kuma_dir=$dest_dir/$kuma_subdir

rm -rf "$dest_dir"
mkdir "$dest_dir"
Expand All @@ -107,7 +109,7 @@ function create_tarball() {

archive_path=$(archive_path "$arch" "$system" "$distro")

tar -czf "${archive_path}" -C "$dest_dir" .
tar -czf "${archive_path}" -C "$dest_dir" "$kuma_subdir"
}

function package() {
Expand Down

0 comments on commit 164791f

Please sign in to comment.