mirror of
https://github.com/espressif/openthread.git
synced 2026-09-08 10:10:06 +00:00
[shellcheck] fix SC2155 warning (#8490)
Declare and assign separately to avoid masking return values.
This commit is contained in:
+11
-4
@@ -29,10 +29,17 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
readonly OT_TMP_DIR=/tmp/ot-size-report
|
||||
readonly OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)}
|
||||
readonly OT_SHA_OLD="$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)"
|
||||
readonly OT_REPORT_FILE=/tmp/size_report
|
||||
OT_TMP_DIR=/tmp/ot-size-report
|
||||
readonly OT_TMP_DIR
|
||||
|
||||
OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)}
|
||||
readonly OT_SHA_NEW
|
||||
|
||||
OT_SHA_OLD="$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)"
|
||||
readonly OT_SHA_OLD
|
||||
|
||||
OT_REPORT_FILE=/tmp/size_report
|
||||
readonly OT_REPORT_FILE
|
||||
|
||||
setup_arm_gcc_7()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user