1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-26 00:12:29 +01:00

Oops. Don't wipe out configuration files :) :/

This commit is contained in:
David Paleino
2011-12-11 20:41:57 +01:00
parent f2780e528a
commit 542aa18749

View File

@@ -37,7 +37,7 @@ def sanitize_config_file(path):
conf = open(path)
newconf = ''
for line in conf:
if '[' not in line or '=' not in line:
if '[' in line or '=' in line:
newconf += line
conf.close()
conf = open(path, 'w')