Skip to content

Commit

Permalink
fix(releasing): Fix version calculation (#11778)
Browse files Browse the repository at this point in the history
Adding `rust-version` was causing the `awk` script to match it as well.

Signed-off-by: Jesse Szwedko <jesse@szwedko.me>
  • Loading branch information
jszwedko committed Apr 7, 2022
1 parent 60886d3 commit 38b806e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ set -euo pipefail
# An optional "nightly" suffix is added if the build channel
# is nightly.

VERSION="${VERSION:-"$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml)"}"
VERSION="${VERSION:-"$(awk -F ' = ' '$1 ~ /^version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml)"}"
CHANNEL="${CHANNEL:-"$(scripts/release-channel.sh)"}"
echo "$VERSION"

0 comments on commit 38b806e

Please sign in to comment.