Skip to content

Commit

Permalink
pick: fix: grep correct spec_version (#5070) (#5071)
Browse files Browse the repository at this point in the history
fix: grep correct spec_version

fix: treat as raw string
  • Loading branch information
kylezs authored Jul 22, 2024
1 parent 771eee5 commit 8e25ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/scripts/check_runtime_spec_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ network=$1
runtime_spec_version_file="state-chain/runtime/src/lib.rs"

# Extract the spec_version from the Rust file
spec_version=$(grep 'spec_version:' $runtime_spec_version_file | awk '{print $2}' | tr -d ',')
spec_version=$(grep -F '#[sp_version::runtime_version]' -A 10 $runtime_spec_version_file | grep 'spec_version' | awk '{print $2}' | tr -d ',')

if [ -z $network ]; then
echo "Network not specified"
Expand Down

0 comments on commit 8e25ef7

Please sign in to comment.