Merge pull request #95943 from aojea/upgradejob

fix unbound variable on upgrade
This commit is contained in:
Kubernetes Prow Robot 2020-10-28 06:39:56 -07:00 committed by GitHub
commit 53d63fb748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -462,7 +462,9 @@ function update-coredns-config() {
# clean up
cleanup() {
if [ -n "${download_dir:-}" ]; then
rm -rf "${download_dir}"
fi
}
trap cleanup RETURN