Skip to content

Commit b382b2e

Browse files
Satisfy trunk linter
1 parent 36c540d commit b382b2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pb/gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
# Check if protoc version matches expected version first
77
EXPECTED_PROTOC_VERSION="3.21.12"
8-
ACTUAL_PROTOC_VERSION=$(protoc --version 2>/dev/null | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+')
8+
ACTUAL_PROTOC_VERSION=$(protoc --version 2>/dev/null | grep -o '[0-9]\+\.[0-9]\+\.[0-9]\+' || true)
99

1010
if [[ ${ACTUAL_PROTOC_VERSION} != "${EXPECTED_PROTOC_VERSION}" ]]; then
1111
echo "Warning: protoc version mismatch"

0 commit comments

Comments
 (0)