From 2d0c7835f153962ca6cacce7532a70c00fda42c4 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 28 Mar 2024 10:07:44 +1100 Subject: [PATCH] Tighten the version grep in vendor script We just added `rust-version = ` to the `secp256k1-sys` manifest, doing so causes a grep statement from the vendor script to match this line - we don't want that. Tighten up the grep statement by only matching on `version` at the start of the line. --- secp256k1-sys/vendor-libsecp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/secp256k1-sys/vendor-libsecp.sh b/secp256k1-sys/vendor-libsecp.sh index ed437fc..735bb01 100755 --- a/secp256k1-sys/vendor-libsecp.sh +++ b/secp256k1-sys/vendor-libsecp.sh @@ -8,7 +8,7 @@ else SECP_VENDOR_GIT_ROOT="$(realpath "$SECP_VENDOR_GIT_ROOT")" fi SECP_SYS="$SECP_VENDOR_GIT_ROOT"/secp256k1-sys -DEFAULT_VERSION_CODE=$(grep version "$SECP_SYS/Cargo.toml" | sed 's/\./_/g' | sed 's/.*"\(.*\)".*/\1/') +DEFAULT_VERSION_CODE=$(grep "^version" "$SECP_SYS/Cargo.toml" | sed 's/\./_/g' | sed 's/.*"\(.*\)".*/\1/') DEFAULT_DEPEND_DIR="$SECP_SYS/depend" DEFAULT_SECP_REPO=https://github.com/bitcoin-core/secp256k1.git