[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
+5 -2
View File
@@ -29,8 +29,11 @@
set -euxo pipefail
readonly OT_MERGED_PROFILES=merged_profiles
readonly OT_GCOV_PREFIX_BASE=ot-run
OT_MERGED_PROFILES=merged_profiles
readonly OT_MERGED_PROFILES
OT_GCOV_PREFIX_BASE=ot-run
readonly OT_GCOV_PREFIX_BASE
merge_profiles()
{