This website requires JavaScript.
Explore
Help
Register
Sign In
liz
/
veilid
Watch
1
Star
0
Fork
0
You've already forked veilid
Code
Pull Requests
Packages
Releases
Activity
ba72aa9dd3
veilid
/
package
/
cargo_version.sh
5 lines
79 B
Bash
Raw
Normal View
History
Unescape
Escape
refactoring, more config, packaging
2022-05-16 15:52:48 +00:00
#!/bin/bash
INPUTFILE
=
$1
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'.
2023-09-02 15:50:58 +00:00
cat
$1
|
grep -w version
|
head -n
1
|
cut -d
\"
-f
2
Copy Permalink