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

Added removal of extra slash

This commit is contained in:
Valery Sinelnikov 2024-02-19 11:51:34 +04:00
parent ac2190809a
commit 446fa532db

View File

@ -239,7 +239,7 @@ def expand_windows_var(text, username=None):
for var in variables.keys():
result = result.replace('%{}%'.format(var),
variables[var] if variables[var][-1] == '/'
else variables[var] +'/')
else variables[var] +'/').replace('//','/')
return result