mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Clean out _output directory from within docker.
This is necessary as some files might be owned by root.
This commit is contained in:
parent
a292d8c416
commit
500c77a38e
@ -149,16 +149,14 @@ function kube::build::is_osx() {
|
|||||||
|
|
||||||
function kube::build::clean_output() {
|
function kube::build::clean_output() {
|
||||||
# Clean out the output directory if it exists.
|
# Clean out the output directory if it exists.
|
||||||
if kube::build::is_osx ; then
|
if kube::build::build_image_built ; then
|
||||||
if kube::build::build_image_built ; then
|
echo "+++ Cleaning out _output/ via docker build image"
|
||||||
echo "+++ Cleaning out boot2docker _output/"
|
kube::build::run_build_command rm -rf '${REMOTE_OUTPUT_ROOT}/*'
|
||||||
kube::build::run_build_command rm -rf "${REMOTE_OUTPUT_ROOT}" || true
|
else
|
||||||
else
|
echo "!!! Build image not built. Cannot clean via docker build image."
|
||||||
echo "!!! Build image not built. Assuming boot2docker _output is clean."
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "+++ Cleaning out _output directory"
|
echo "+++ Cleaning out local _output directory"
|
||||||
rm -rf "${LOCAL_OUTPUT_ROOT}"
|
rm -rf "${LOCAL_OUTPUT_ROOT}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user