mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-21 20:15:13 +00:00
umount_tomb: avoid double execution of list_tomb_binds()
Especially directly after each other.
This commit is contained in:
parent
89283a06b7
commit
0b25ba6d68
4
tomb
4
tomb
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user