Fix a variable undefined error
This commit is contained in:
parent
3739f1396b
commit
173f9659d7
@ -276,7 +276,7 @@ function rm-on-exit() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function 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"
|
[[ -f "$file" ]] && rm -r "$file"
|
||||||
done
|
done
|
||||||
files_to_be_deleted=()
|
files_to_be_deleted=()
|
||||||
|
Loading…
Reference in New Issue
Block a user