Skip to content

Commit 6c8b958

Browse files
authored
build-script: fix trailing newlines in --preset-vars-file (#78270)
Currently, usage of `--preset-vars-file` (added in #76058) introduces newlines in values of preset variables passed via this file. Calling `strip()` will remove trailing and preceding whitespace characters, including newlines.
1 parent d2801ec commit 6c8b958

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ def main_preset():
601601
with open(file, 'r') as f:
602602
for _, line in enumerate(f):
603603
name, value = line.split("=", 1)
604-
args.preset_substitutions[name] = value
604+
args.preset_substitutions[name] = value.strip()
605605

606606
for arg in args.preset_substitutions_raw:
607607
name, value = arg.split("=", 1)

0 commit comments

Comments
 (0)