Skip to content

Commit 9faa004

Browse files
committed
template_setup_posix: Fix command line toolchain flag handling
The commit 05f6047 moved the toolchain list from the setup script itself to an external file (`sdk_toolchains`). This change also introduced a delimiter change from 'SPACE' to 'LF' that broke the regular expression used by the toolchain (`-t`) flag handler, which assumes the 'SPACE' delimiter. This commit reworks the setup script to convert the 'LF' delimiter to 'SPACE' after loading the toolchain list from `sdk_toolchains` to fix this issue. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent 1b5188f commit 9faa004

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/template_setup_posix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ pushd "$(dirname "${BASH_SOURCE[0]}")"
117117

118118
# Initialise toolchain list
119119
toolchains=$(<sdk_toolchains)
120+
toolchains=("${toolchains[@]//$'\n'/ }")
120121

121122
# Initialise list of toolchains to install
122123
inst_toolchains=()

0 commit comments

Comments
 (0)