Commit b1cabd6
committed
build_library: Fix setting gcc profile with latest gcc-config
In order to fix some bash-completion issues, the output of "gcc-config
-l" has changed slightly - it received one more leading space in the
output.
Old output:
[1] aarch64-cros-linux-gnu-15 *
New output:
[1] aarch64-cros-linux-gnu-15 *
This has added another field from cut's point of view, as it was
splitting the line into fields by single spaces, which means that
instead of getting "aarch64-cros-linux-gnu-15" we were getting
"[1]". This has caused grep to match nothing, setting the error status
in PIPESTATUS and finally a function failure.
Instead of fiddling with leading empty fields, just strip the leading
spaces, dammit.
Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>1 parent 24a935b commit b1cabd6
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
| 493 | + | |
| 494 | + | |
495 | 495 | | |
496 | | - | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
497 | 501 | | |
498 | 502 | | |
499 | 503 | | |
| |||
0 commit comments