mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 10:50:35 +03:00
Add newline when writing to /etc/auto.master
This commit is contained in:
parent
e864235761
commit
70c233a0df
@ -41,7 +41,8 @@ def add_line_if_missing(filename, ins_line):
|
||||
if ins_line in line.strip():
|
||||
break
|
||||
else:
|
||||
f.write(ins_line)
|
||||
f.write(ins_line + '\n')
|
||||
f.flush()
|
||||
|
||||
class cifs_applier(applier_frontend):
|
||||
def __init__(self, storage):
|
||||
|
Loading…
x
Reference in New Issue
Block a user