diff --git a/ufw-docker b/ufw-docker index c1673de..8a93550 100755 --- a/ufw-docker +++ b/ufw-docker @@ -276,7 +276,7 @@ function rm-on-exit() { } function on-exit() { - for file in "${files_to_be_deleted[@]}"; do + for file in "${files_to_be_deleted[@]:-}"; do [[ -f "$file" ]] && rm -r "$file" done files_to_be_deleted=()