From 2f577a7d987b816e9b08ddcb7cba41adb7cf6f5d Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 25 May 2025 16:33:14 +0200 Subject: [PATCH] publish.sh: be more prescriptive on the grep (#7983) otherwise, we are getting version.workspace first --- util/publish.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/publish.sh b/util/publish.sh index 84022a70a..880e82e19 100755 --- a/util/publish.sh +++ b/util/publish.sh @@ -51,7 +51,7 @@ TOTAL_ORDER=$(echo -e $PARTIAL_ORDER | tsort | tac) # Remove the ROOT node from the start TOTAL_ORDER=${TOTAL_ORDER#ROOT} -CRATE_VERSION=$(grep '^version' Cargo.toml | head -n1 | cut -d '"' -f2) +CRATE_VERSION=$(grep '^version =' Cargo.toml | head -n1 | cut -d '"' -f2) set -e for dir in src/uuhelp_parser/ src/uucore_procs/ src/uucore/ src/uu/stdbuf/src/libstdbuf/ tests/uutests/; do