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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user