Commit 10fbb2b2 authored by Joshua Tauberer's avatar Joshua Tauberer

in cf7053c1 I allowed editconf.py to insert a...

in cf7053c1 I allowed editconf.py to insert a setting where we find it already commented-out in order to get an nginx configuration line in the right place, but it wasn't quite right because when run again we would insert the setting a second time
parent 3bab63d4
......@@ -74,6 +74,9 @@ while len(input_lines) > 0:
# If this is already the setting, do nothing.
if is_comment is None and existing_val == val:
# It may be that we've already inserted this setting higher
# in the file so check for that first.
if i in found: break
buf += line
found.add(i)
break
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment