From 52b5254120e8140ef72277408f8ba1f6addd1cf7 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Mon, 25 Oct 2010 16:20:23 -0400 Subject: ensure that we only remove fully-matching lines once we have found them --- src/share/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/common b/src/share/common index a6da309..4915923 100644 --- a/src/share/common +++ b/src/share/common @@ -346,7 +346,7 @@ remove_line() { log debug "removing matching key lines..." tempfile=$(mktemp "${file}.XXXXXXX") || \ failure "Unable to make temp file '${file}.XXXXXXX'" - grep -v -F "$lines" "$file" >"$tempfile" + grep -v -x -F "$lines" "$file" >"$tempfile" mv -f "$tempfile" "$file" fi } -- cgit v1.2.3