From 27792f44215ceb087055503745743265c9edb588 Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Sat, 16 Dec 2023 09:56:55 +0200 Subject: [PATCH] Fix umount issue when path have spaces in directory or file name --- tomb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tomb b/tomb index f2945e7..d907143 100755 --- a/tomb +++ b/tomb @@ -3141,7 +3141,7 @@ umount_tomb() { bind_mapper="${b[(ws:;:)1]}" bind_mount="${b[(ws:;:)2]}" _message "Closing tomb bind hook: ::1 hook::" "$bind_mount" - _sudo umount "$bind_mount" || + _sudo umount "$(echo "$bind_mount")" || _failure "Tomb bind hook ::1 hook:: is busy, cannot close tomb." "$bind_mount" done