publish.sh: be more prescriptive on the grep (#7983)

otherwise, we are getting version.workspace first
This commit is contained in:
Sylvestre Ledru 2025-05-25 16:33:14 +02:00 committed by GitHub
parent 7221d000bc
commit 2f577a7d98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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