From 783b7cc59c35f842686409f953f3c16bc2c59cb9 Mon Sep 17 00:00:00 2001 From: TC Johnson Date: Sat, 2 Sep 2023 10:50:58 -0500 Subject: [PATCH] Fix packaging version parsing Comments added to Cargo.toml caused faulty parsing of the version number by package/cargo_version.sh. Adding the -w switch to grep fixes this by matching on the whole word 'version' and not matching on words such as 'Bumpversion'. --- package/cargo_version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/cargo_version.sh b/package/cargo_version.sh index 00da8f5d..cce82e60 100755 --- a/package/cargo_version.sh +++ b/package/cargo_version.sh @@ -1,4 +1,4 @@ #!/bin/bash INPUTFILE=$1 -cat $1 | grep version | head -n 1 | cut -d\" -f 2 +cat $1 | grep -w version | head -n 1 | cut -d\" -f 2