Skip to content

Commit 53d63fb

Browse files
authored
Merge pull request kubernetes#95943 from aojea/upgradejob
fix unbound variable on upgrade
2 parents 1a645c2 + 7c3bd97 commit 53d63fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cluster/gce/upgrade.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,9 @@ function update-coredns-config() {
462462

463463
# clean up
464464
cleanup() {
465-
rm -rf "${download_dir}"
465+
if [ -n "${download_dir:-}" ]; then
466+
rm -rf "${download_dir}"
467+
fi
466468
}
467469
trap cleanup RETURN
468470

0 commit comments

Comments
 (0)