Fix umount issue when path have spaces in directory or file name

This commit is contained in:
Llewellyn van der Merwe 2023-12-16 09:56:55 +02:00 committed by Jaromil
parent 8be3163022
commit 27792f4421
1 changed files with 1 additions and 1 deletions

2
tomb
View File

@ -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