forked from platformio/platformio-core
Handle EOL when update VCS ignore file
This commit is contained in:
2
examples
2
examples
Submodule examples updated: e614de50bf...5cafb1f792
@ -278,6 +278,8 @@ def init_cvs_ignore(project_dir):
|
||||
if isfile(ignore_path):
|
||||
with open(ignore_path) as fp:
|
||||
current = fp.readlines()
|
||||
if current and not current[-1].endswith("\n"):
|
||||
current[-1] += "\n"
|
||||
for d in default:
|
||||
if d not in current:
|
||||
current.append(d)
|
||||
|
Reference in New Issue
Block a user