Skip to content

Commit

Permalink
Fix version parsing logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jackkleeman committed Jun 7, 2024
1 parent 34df9eb commit f6afad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion release/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set -euo pipefail

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

version=$(curl --silent --location --fail https://api.github.com/repos/restatedev/restate/releases/latest | grep '^ "name"' | awk '{print $2}' | tr -d '"v,')
version=$(curl --silent --location --fail https://api.github.com/repos/restatedev/restate/releases/latest | grep '^ "tag_name"' | awk '{print $2}' | tr -d '"v,')
darwin_x86=$(curl --silent --location --fail "https://github.com/restatedev/restate/releases/download/v${version}/restate.x86_64-apple-darwin.tar.gz" | sha256sum | awk '{print $1}')
darwin_arm64=$(curl --silent --location --fail "https://github.com/restatedev/restate/releases/download/v${version}/restate.aarch64-apple-darwin.tar.gz" | sha256sum | awk '{print $1}')
linux_x86=$(curl --silent --location --fail "https://github.com/restatedev/restate/releases/download/v${version}/restate.x86_64-unknown-linux-musl.tar.gz" | sha256sum | awk '{print $1}')
Expand Down

0 comments on commit f6afad2

Please sign in to comment.