mirror of
https://github.com/sascha-hemi/ufw-docker.git
synced 2026-03-21 03:04:20 +01:00
Fix a variable undefined error
This commit is contained in:
@@ -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=()
|
||||
|
||||
Reference in New Issue
Block a user