From 289e78c1360b3e08e7bdafa472136f3c35697bd4 Mon Sep 17 00:00:00 2001 From: koba1t Date: Fri, 20 Oct 2023 04:00:13 +0900 Subject: [PATCH] fix release binary archive contains unnecessary dir --- releasing/create-release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/releasing/create-release.sh b/releasing/create-release.sh index 56532281ab..9014c0b197 100755 --- a/releasing/create-release.sh +++ b/releasing/create-release.sh @@ -59,9 +59,9 @@ function build_kustomize_binary { -X sigs.k8s.io/kustomize/api/provenance.buildDate=$build_date"\ kustomize/main.go if [ "$os" == "windows" ]; then - zip "${release_dir}/kustomize_${version}_${os}_${arch}.zip" output/kustomize + zip -j "${release_dir}/kustomize_${version}_${os}_${arch}.zip" output/kustomize else - tar cvfz "${release_dir}/kustomize_${version}_${os}_${arch}.tar.gz" output/kustomize + tar cvfz "${release_dir}/kustomize_${version}_${os}_${arch}.tar.gz" -C output kustomize fi rm output/kustomize done