mirror of
https://github.com/espressif/openthread.git
synced 2026-08-01 00:27:47 +00:00
[shellcheck] fix SC2155 warning (#8490)
Declare and assign separately to avoid masking return values.
This commit is contained in:
@@ -29,8 +29,11 @@
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
readonly OT_SHA_OLD="$(git cat-file -p HEAD | grep 'parent ' | head -n1 | cut -d' ' -f2)"
|
||||
readonly OT_VERSIONS_FILE=tmp/api_versions
|
||||
OT_SHA_OLD="$(git cat-file -p HEAD | grep 'parent ' | head -n1 | cut -d' ' -f2)"
|
||||
readonly OT_SHA_OLD
|
||||
|
||||
OT_VERSIONS_FILE=tmp/api_versions
|
||||
readonly OT_VERSIONS_FILE
|
||||
|
||||
die()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user