From 5aa81d5504ae50d7a5f2eec1c75f61c579e96830 Mon Sep 17 00:00:00 2001 From: Jonathan Strong Date: Fri, 9 Sep 2022 15:57:08 -0400 Subject: [PATCH] fix tr-based search/replace with improved sed-based search-replace old one removed all of the characters in version, wherever they were in the line, so v0.28.0-rc.1 ended up v0.28.0-c.1 --- justfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/justfile b/justfile index d1fcf9d..718e8ab 100644 --- a/justfile +++ b/justfile @@ -45,7 +45,7 @@ verify-clean-git: test "$(echo `git status --porcelain` | wc -c)" -eq "1" get-crate-version: - @cat Cargo.toml | rg '^version =' | tr -d "version = " | tr -d '"' + @cat Cargo.toml | rg '^version =' | sed -e 's/^version\s*=\s*//' | tr -d '"' # re-generate README.md and overwrite existing file with output update-readme: