Skip to content

Commit 7c3bd97

Browse files
author
Antonio Ojea
committed
fix unbound variable on upgrade
1 parent a9e9cab commit 7c3bd97

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)