diff --git a/build/get_protoc.bash b/build/get_protoc.bash index 6e97849..dad3e89 100644 --- a/build/get_protoc.bash +++ b/build/get_protoc.bash @@ -19,9 +19,14 @@ wget --continue https://github.com/protocolbuffers/protobuf/releases/download/v" stat "$FILENAME" -sha256sum -c --ignore-missing <&2; exit 1 ;; +esac + +# Verify checksum explicitly - fails if hash doesn't match +echo "$EXPECTED_SHA256 $FILENAME" | sha256sum -c - unzip -d . "$FILENAME"