mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +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
|
||||
cleanup() {
|
||||
rm -rf "${download_dir}"
|
||||
if [ -n "${download_dir:-}" ]; then
|
||||
rm -rf "${download_dir}"
|
||||
fi
|
||||
}
|
||||
trap cleanup RETURN
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user