umount_tomb: avoid double execution of list_tomb_binds()

Especially directly after each other.
This commit is contained in:
Narrat 2024-08-06 10:51:01 +02:00 committed by Jaromil
parent 89283a06b7
commit 0b25ba6d68

4
tomb
View File

@ -3079,9 +3079,9 @@ umount_tomb() {
_message "Closing tomb ::1 tomb name:: mounted on ::2 mount point::" \
$tombname "$tombmount"
# check if there are binded dirs and close them
# check if there are bind mounted dirs and close them
bind_tombs=(`list_tomb_binds $tombname "$tombmount"`)
for b in ${(f)"$(list_tomb_binds $tombname "$tombmount")"}; do
for b in ${bind_tombs}; do
bind_mapper="${b[(ws:;:)1]}"
bind_mount="${b[(ws:;:)2]}"
_message "Closing tomb bind hook: ::1 hook::" "$bind_mount"