Skip to content

Commit 0a87033

Browse files
committed
fix(script): be more explicit about where to find Cargo.tomls
1 parent ece7410 commit 0a87033

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.scripts/verify_crate_versions.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -euo pipefail
1111
# stackable-versioned-0.1.1
1212
# stackable-webhook-0.3.1
1313

14-
for CRATE in $(find . -mindepth 2 -name Cargo.toml | sed -e 's|^./crates/\([a-z0-9_\-]\+\).*|\1|' | sort); do
14+
for CRATE in $(find ./crates/ -mindepth 2 -name Cargo.toml -print0 | xargs -0 -n 1 dirname | xargs -n 1 basename | sort); do
1515
# Get the version in Cargo.toml
1616
CRATE_VERSION=$(grep 'version' "./crates/$CRATE/Cargo.toml" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
1717
[ -n "$CRATE_VERSION" ] || (

0 commit comments

Comments
 (0)