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'.
This commit is contained in:
parent
2c46a159a3
commit
783b7cc59c
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
INPUTFILE=$1
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user