Skip to content

Commit

Permalink
fix emulator install script for image build for new bin naming format (
Browse files Browse the repository at this point in the history
  • Loading branch information
edaniszewski committed Apr 25, 2019
1 parent 045e336 commit bb2182f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/install_emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ EMULATOR_OUT=${EMULATOR_OUT:-""}
data=$(curl -s https://api.github.com/repos/${EMULATOR_REPO}/releases/latest)

# Get the URL for the latest release asset binary.
bin_url=$(echo ${data} | jq --arg bin "$EMULATOR_BIN" '.assets[] | select(.name == $bin) | .url' | tr -d '"')
bin_url=$(echo ${data} | jq '.assets[] | select(.name | contains("linux_amd64")) | .url ' | tr -d '"')

# Download the binary
curl -L -H "Accept: application/octet-stream" -o ${EMULATOR_BIN} ${bin_url}
Expand Down

0 comments on commit bb2182f

Please sign in to comment.