summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-10-25 16:20:23 -0400
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>2010-10-25 16:20:23 -0400
commit52b5254120e8140ef72277408f8ba1f6addd1cf7 (patch)
tree2b404df2d079489e15b4aec99529768fb1df8d7b
parent46f5d82b83ca38aeffcc660d8b5d621bf19f3f4f (diff)
ensure that we only remove fully-matching lines once we have found them
-rw-r--r--src/share/common2
1 files changed, 1 insertions, 1 deletions
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
}