[shellcheck] fix SC2155 warning (#8490)

Declare and assign separately to avoid masking return values.
This commit is contained in:
Jonathan Hui
2022-12-07 16:23:20 -08:00
parent 864236cbf1
commit 48c0582e4e
13 changed files with 125 additions and 52 deletions
+6 -3
View File
@@ -29,9 +29,10 @@
set -euxo pipefail
readonly OT_SRCDIR="$(pwd)"
OT_SRCDIR="$(pwd)"
readonly OT_SRCDIR
readonly OT_BUILD_OPTIONS=(
OT_BUILD_OPTIONS=(
"-DOT_ANYCAST_LOCATOR=ON"
"-DOT_BUILD_EXECUTABLES=OFF"
"-DOT_BORDER_AGENT=ON"
@@ -75,13 +76,15 @@ readonly OT_BUILD_OPTIONS=(
"-DOT_SRP_CLIENT=ON"
"-DOT_SRP_SERVER=ON"
)
readonly OT_BUILD_OPTIONS
readonly OT_CFLAGS=(
OT_CFLAGS=(
"-DMBEDTLS_DEBUG_C"
"-I$(pwd)/third_party/mbedtls"
"-I$(pwd)/third_party/mbedtls/repo/include"
'-DMBEDTLS_CONFIG_FILE=\"mbedtls-config.h\"'
)
readonly OT_CFLAGS
main()
{