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:
Alan Sikora
2026-03-08 20:46:11 -03:00
parent f92712541d
commit 505c15e624
+1 -1
View File
@@ -6,7 +6,7 @@
# to silently fail. The FUSE daemons restart automatically on wake.
if [[ $1 == "pre" ]]; then
while IFS=' ' read -r _ mountpoint _ fstype _; do
while IFS=' ' read -r _ mountpoint fstype _; do
if [[ $fstype == fuse.* ]]; then
fusermount3 -uz "$mountpoint" 2>/dev/null || fusermount -uz "$mountpoint" 2>/dev/null || true
fi