correction for unmounting volumes with weird characters, thanks Brant

Gurganus <brant@gurganus.name>
This commit is contained in:
Jory A. Pratt 2010-10-28 20:34:34 -05:00
parent d8a76d1bf6
commit 060b19e3e3

View File

@ -26,6 +26,8 @@ do_unmount()
# Unmounting a shared mount can unmount other mounts, so
# we need to check the mount is still valid
mountinfo --quiet "$mnt" || continue
# Ensure we interpret all characters properly.
mnt=$(printf "$mnt")
case "$cmd" in
umount)