Skip to content

Commit

Permalink
fix: reflect comment
Browse files Browse the repository at this point in the history
add prerelease part
  • Loading branch information
da1suk8 committed Sep 19, 2023
1 parent acb38ff commit bf363b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devtools/get_version.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
packages=("cosmwasm-derive" "cosmwasm-schema" "cosmwasm-std" "cosmwasm-storage" "cosmwasm-vm")

V=$(cargo tree -i "cosmwasm-crypto" | grep -o -E "\d+(\.\d+){2}\+\d+(\.\d+){2}" | head -n1)
V=$(cargo tree -i "cosmwasm-crypto" | grep -o -E "\d+(\.\d+){2}[\+\-]\d+(\.\d+){2}" | head -n1)

for ((i = 0; i < ${#packages[@]}; i++)) {
if [ "$V" != $(cargo tree -i "${packages[i]}" | grep -o -E "\d+(\.\d+){2}\+\d+(\.\d+){2}" | head -n1) ]; then
if [ "$V" != $(cargo tree -i "${packages[i]}" | grep -o -E "\d+(\.\d+){2}[\+\-]\d+(\.\d+){2}" | head -n1) ]; then
echo "mismatch version"
exit 1
fi
Expand Down

0 comments on commit bf363b9

Please sign in to comment.