fix unbound variable on upgrade

This commit is contained in:
Antonio Ojea 2020-10-28 09:05:29 +01:00
parent a9e9cabbea
commit 7c3bd972e9

View File

@ -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