We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ece7410 commit 0a87033Copy full SHA for 0a87033
.scripts/verify_crate_versions.sh
@@ -11,7 +11,7 @@ set -euo pipefail
11
# stackable-versioned-0.1.1
12
# stackable-webhook-0.3.1
13
14
-for CRATE in $(find . -mindepth 2 -name Cargo.toml | sed -e 's|^./crates/\([a-z0-9_\-]\+\).*|\1|' | sort); do
+for CRATE in $(find ./crates/ -mindepth 2 -name Cargo.toml -print0 | xargs -0 -n 1 dirname | xargs -n 1 basename | sort); do
15
# Get the version in Cargo.toml
16
CRATE_VERSION=$(grep 'version' "./crates/$CRATE/Cargo.toml" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
17
[ -n "$CRATE_VERSION" ] || (
0 commit comments