mirror of
https://github.com/chaifeng/ufw-docker.git
synced 2025-05-10 13:38:32 +02:00
Fix a variable undefined error
This commit is contained in:
parent
3739f1396b
commit
173f9659d7
1 changed files with 1 additions and 1 deletions
|
@ -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=()
|
||||
|
|
Loading…
Add table
Reference in a new issue