From 0b25ba6d68964484bcfa93cd759133649c7049a8 Mon Sep 17 00:00:00 2001 From: Narrat Date: Tue, 6 Aug 2024 10:51:01 +0200 Subject: [PATCH] umount_tomb: avoid double execution of list_tomb_binds() Especially directly after each other. --- tomb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tomb b/tomb index ac91ea2..7eae235 100755 --- a/tomb +++ b/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"