Skip to content

Commit b545855

Browse files
committed
Avoid parsing TOML with sed
1 parent acf9695 commit b545855

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

debian/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -x
44

55
cd "$(dirname "$0")"
66

7-
VERSION=$(sed -n 's/^version = "\(.*\)"$/\1/p' ../librustls/Cargo.toml)
7+
VERSION=$(cargo pkgid -p rustls-ffi | sed 's/.*@//')
88
if [ -z "$VERSION" ]; then
99
echo "Failed to extract version from Cargo.toml" >&2
1010
exit 1

0 commit comments

Comments
 (0)