Do not relying on the existance of 3 spaces to make decisions
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
ec5aff5eb9
commit
56efae7e16
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ def main():
|
|||
process = True
|
||||
else:
|
||||
process = False
|
||||
if process and row.strip().startswith('RWC master ='):
|
||||
if process and " ".join(row.strip().split()).startswith('RWC master ='):
|
||||
new_row = row
|
||||
new_row = new_row.replace(' master =', ' {} ='.format(args.gitbranch), 1)
|
||||
output.append(new_row)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue