mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 11:21:47 +00:00
Merge pull request #95943 from aojea/upgradejob
fix unbound variable on upgrade
This commit is contained in:
commit
53d63fb748
@ -462,7 +462,9 @@ function update-coredns-config() {
|
|||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
cleanup() {
|
cleanup() {
|
||||||
rm -rf "${download_dir}"
|
if [ -n "${download_dir:-}" ]; then
|
||||||
|
rm -rf "${download_dir}"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
trap cleanup RETURN
|
trap cleanup RETURN
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user