Skip to content

Commit 2d0c783

Browse files
committed
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.
1 parent a2b78f4 commit 2d0c783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

secp256k1-sys/vendor-libsecp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else
88
SECP_VENDOR_GIT_ROOT="$(realpath "$SECP_VENDOR_GIT_ROOT")"
99
fi
1010
SECP_SYS="$SECP_VENDOR_GIT_ROOT"/secp256k1-sys
11-
DEFAULT_VERSION_CODE=$(grep version "$SECP_SYS/Cargo.toml" | sed 's/\./_/g' | sed 's/.*"\(.*\)".*/\1/')
11+
DEFAULT_VERSION_CODE=$(grep "^version" "$SECP_SYS/Cargo.toml" | sed 's/\./_/g' | sed 's/.*"\(.*\)".*/\1/')
1212
DEFAULT_DEPEND_DIR="$SECP_SYS/depend"
1313
DEFAULT_SECP_REPO=https://github.com/bitcoin-core/secp256k1.git
1414

0 commit comments

Comments
 (0)