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:
parent
61e7350429
commit
b5706ec6e1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user