Skip to content

Commit

Permalink
simplify foxarup bash script (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaZezulinsky authored and Kuly14 committed May 30, 2024
1 parent c59f171 commit 441df44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foxarup/foxarup
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ main() {

# Install by downloading binaries
if [[ "$FOXARUP_REPO" == "bchainhub/foxar" && -z "$FOXARUP_BRANCH" && -z "$FOXARUP_COMMIT" ]]; then
FOXARUP_VERSION=$(curl --silent "https://api.github.com/repos/$FOXARUP_REPO/releases/latest" | jq -r .tag_name)
FOXARUP_VERSION=$(curl --silent "https://api.github.com/repos/$FOXARUP_REPO/releases/latest" | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/')
FOXARUP_TAG=$FOXARUP_VERSION

say "installing foxar (version ${FOXARUP_VERSION}, tag ${FOXARUP_TAG})"
Expand Down

0 comments on commit 441df44

Please sign in to comment.