From 1766ae4554ae6673947f6a1008db73b3c0df2696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Bardon?= Date: Tue, 2 Jan 2024 20:00:47 -0600 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20release=20script?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 4ddd394..6e90c00 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -2,7 +2,7 @@ SRC=src/orangutan -VERSION="$(sed -n 's/version = "\(0.1.0\)"/\1/p' "$SRC"/Cargo.toml)" +VERSION="$(rg 'version = "(\d+\.\d+.\d+)"' -N --replace '$1' "$SRC"/Cargo.toml)" TAG="v${VERSION:?}" echo "Creating tag '${TAG}'…"