From 144b5c5929b43d9b20c59ee56c9898ef8baa3518 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=83rcziem=20=E2=84=A2?= <118485377+spalencsar@users.noreply.github.com> Date: Fri, 3 Oct 2025 12:55:02 +0200 Subject: [PATCH] fix(nfs): use # as sed delimiter to handle paths with slashes --- lib/nfs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nfs.sh b/lib/nfs.sh index a581fd6..56447f5 100644 --- a/lib/nfs.sh +++ b/lib/nfs.sh @@ -36,7 +36,7 @@ install_nfs() { # Remove any existing entries for this export directory to avoid duplicates if grep -q "^$export_dir " "$exports_file" 2>/dev/null; then - sudo sed -i "/^$export_dir /d" "$exports_file" + sudo sed -i "\#^$export_dir #d" "$exports_file" log_debug "Removed existing NFS export entries for $export_dir" fi