Fixed logic with bat files.
This commit is contained in:
parent
252aa59105
commit
078189dbbf
2 changed files with 2 additions and 2 deletions
|
|
@ -949,7 +949,8 @@ class CommandBase(object):
|
|||
export_dirs=ex_dir_vars,
|
||||
**export_dict)
|
||||
batcontents = '{}{}'.format(env_vars.replace('\n',''), contents.replace('\n', ' & '))
|
||||
batcontents = batcontents[:-3]
|
||||
if batcontents.endswith(' & '):
|
||||
batcontents = batcontents[:-3]
|
||||
|
||||
command = ['cmd', '/c', "'" + batcontents + "'"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue