Skip to content

Commit 8823a86

Browse files
committed
Fix src_tarball packaging
Signed-off-by: Joakim Roubert <[email protected]>
1 parent 20aeeed commit 8823a86

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

build/lib/release.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,15 @@ function kube::release::package_src_tarball() {
111111
if [ "${KUBE_GIT_TREE_STATE-}" = 'clean' ]; then
112112
git archive -o "${src_tarball}" HEAD
113113
else
114-
"${TAR}" czf "${src_tarball}" --transform 's|^\.|kubernetes|' -C "${KUBE_ROOT}" "$(cd "${KUBE_ROOT}" && find . -mindepth 1 -maxdepth 1 \
115-
-not \( \
116-
\( -path ./_\* -o \
117-
-path ./.git\* -o \
118-
-path ./.config\* -o \
119-
-path ./.gsutil\* \
120-
\) -prune \
121-
\))"
114+
find "${KUBE_ROOT}" -mindepth 1 -maxdepth 1 \
115+
-not \( \
116+
\( -path "${KUBE_ROOT}"/_\* -o \
117+
-path "${KUBE_ROOT}"/.git\* -o \
118+
-path "${KUBE_ROOT}"/.config\* -o \
119+
-path "${KUBE_ROOT}"/.gsutil\* \
120+
\) -prune \
121+
\) -print0 \
122+
| "${TAR}" czf "${src_tarball}" --transform "s|${KUBE_ROOT#/*}|kubernetes|" --null -T -
122123
fi
123124
}
124125

0 commit comments

Comments
 (0)