Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[script] fix bug when running
script/build
with `OT_CMAKE_NINJA_TAR…
…GET` containing no RCP targets When running `OT_CMAKE_NINJA_TARGET="ot-cli-ftd" script/build brdXXXXy`, the build script errors with `rcp_targets` being an unbound variable. ```shell + rcp_targets=() + soc_targets=() + for t in '"${OT_CMAKE_NINJA_TARGET[@]}"' + [[ ot-cli-ftd =~ .*rcp.* ]] + soc_targets+=("$t") script/build: line 282: rcp_targets[@]: unbound variable ``` This commit fixes the problem by using a default empty string when `rcp_targets` is empty.
- Loading branch information