refactor: Improve umount and force_unmount functions for better error handling and output formatting

This commit is contained in:
Hannes
2026-08-22 23:57:13 +02:00
parent 3305f5a543
commit 1f17b19f1e
+4
View File
@@ -12,6 +12,8 @@ function unmount() {
else else
echo "Unmount completed: $1" echo "Unmount completed: $1"
fi fi
else
echo "$1 is not mounted"
fi fi
} }
@@ -23,6 +25,8 @@ function force_unmount() {
else else
echo "Unmount completed: $1" echo "Unmount completed: $1"
fi fi
else
echo "$1 is not mounted"
fi fi
} }