mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 19:04:29 +02:00
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):
|
if isfile(ignore_path):
|
||||||
with open(ignore_path) as fp:
|
with open(ignore_path) as fp:
|
||||||
current = fp.readlines()
|
current = fp.readlines()
|
||||||
|
if current and not current[-1].endswith("\n"):
|
||||||
|
current[-1] += "\n"
|
||||||
for d in default:
|
for d in default:
|
||||||
if d not in current:
|
if d not in current:
|
||||||
current.append(d)
|
current.append(d)
|
||||||
|
Reference in New Issue
Block a user