mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-24 11:29:09 +00:00
Merge pull request #117510 from BenTheElder/clean-fun
ensure we can remove _output
This commit is contained in:
@@ -367,6 +367,8 @@ function kube::build::clean() {
|
|||||||
|
|
||||||
if [[ -d "${LOCAL_OUTPUT_ROOT}" ]]; then
|
if [[ -d "${LOCAL_OUTPUT_ROOT}" ]]; then
|
||||||
kube::log::status "Removing _output directory"
|
kube::log::status "Removing _output directory"
|
||||||
|
# this ensures we can clean _output/local/go/cache which is not rw by default
|
||||||
|
chmod -R +w "${LOCAL_OUTPUT_ROOT}"
|
||||||
rm -rf "${LOCAL_OUTPUT_ROOT}"
|
rm -rf "${LOCAL_OUTPUT_ROOT}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user