Fix field parsing in unmount-fuse hook
The read command had an extra _ placeholder that was swallowing the fstype field, causing the fuse.* pattern to never match.
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
# to silently fail. The FUSE daemons restart automatically on wake.
|
# to silently fail. The FUSE daemons restart automatically on wake.
|
||||||
|
|
||||||
if [[ $1 == "pre" ]]; then
|
if [[ $1 == "pre" ]]; then
|
||||||
while IFS=' ' read -r _ mountpoint _ fstype _; do
|
while IFS=' ' read -r _ mountpoint fstype _; do
|
||||||
if [[ $fstype == fuse.* ]]; then
|
if [[ $fstype == fuse.* ]]; then
|
||||||
fusermount3 -uz "$mountpoint" 2>/dev/null || fusermount -uz "$mountpoint" 2>/dev/null || true
|
fusermount3 -uz "$mountpoint" 2>/dev/null || fusermount -uz "$mountpoint" 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user