fuse integration: strip a trailing slash off MOUNT_POINT in require-mounted

The mount-table grep fallback on hosts without mountpoint(8) would not match a slash-suffixed entry.
This commit is contained in:
Chris Lu committed 2026-10-22 08:12:24 -07:00
1 parent b377e2cdc9
commit 6d62bf517d
1 file changed
+3 -2
+3 -2
View File
@@ -230,8 +230,9 @@ endif
# mkdir -p would happily point them at a plain local directory and report a
# pass the mount never earned.
require-mounted:
@if ! mountpoint -q "$(MOUNT_POINT)" 2>/dev/null && ! mount | grep -qF " $(MOUNT_POINT) "; then \
echo "$(RED)❌ $(MOUNT_POINT) is not a mounted filesystem - refusing to run against the local disk$(RESET)"; \
@mnt="$(MOUNT_POINT)"; mnt="$${mnt%/}"; \
if ! mountpoint -q "$$mnt" 2>/dev/null && ! mount | grep -qF " $$mnt "; then \
echo "$(RED)❌ $$mnt is not a mounted filesystem - refusing to run against the local disk$(RESET)"; \
exit 1; \
fi