1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Added support for the newline symbol in the environment file

This commit is contained in:
Valery Sinelnikov 2024-06-06 18:14:35 +04:00
parent 61e7350429
commit b5706ec6e1

View File

@ -92,6 +92,8 @@ class Envvar:
value = value.replace('\\', '/')
exist_line = None
for line in lines:
if line == '\n':
continue
if line.split()[0] == name:
exist_line = line
break