From 173f9659d72b8bc46e701191cd4f3634e33f0d6e Mon Sep 17 00:00:00 2001 From: Chai Feng Date: Wed, 12 Aug 2020 13:31:27 +0800 Subject: [PATCH] Fix a variable undefined error --- ufw-docker | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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=()