Skip to content

Commit

Permalink
fix: change from "-" to "+"
Browse files Browse the repository at this point in the history
Because of making cargo patche work properly
  • Loading branch information
da1suk8 committed Sep 19, 2023
1 parent 12ec9d0 commit 7963d99
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 7963d99

Please sign in to comment.