mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-20 23:59:55 +00:00
Address SonarCloud quality gate
- Use [[ ]] for conditional tests in generate.sh scripts - Pin arduino/setup-protoc to full commit SHA
This commit is contained in:
@@ -17,7 +17,7 @@ repo_root=$(git rev-parse --show-toplevel)
|
||||
. "$repo_root/proto-tools.env"
|
||||
|
||||
actual_protoc=$(protoc --version | awk '{print $2}')
|
||||
if [ "$actual_protoc" != "$PROTOC_VERSION" ]; then
|
||||
if [[ "$actual_protoc" != "$PROTOC_VERSION" ]]; then
|
||||
echo "ERROR: protoc version $actual_protoc differs from pinned $PROTOC_VERSION" >&2
|
||||
echo "Install protoc $PROTOC_VERSION from https://github.com/protocolbuffers/protobuf/releases" >&2
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user