File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -111,14 +111,15 @@ function kube::release::package_src_tarball() {
111
111
if [ " ${KUBE_GIT_TREE_STATE-} " = ' clean' ]; then
112
112
git archive -o " ${src_tarball} " HEAD
113
113
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 -
122
123
fi
123
124
}
124
125
You can’t perform that action at this time.
0 commit comments