From 441df445d1ecb1604522b313fa52be9c5811d4c6 Mon Sep 17 00:00:00 2001 From: Sasha Zezulinsky Date: Thu, 23 May 2024 12:27:15 +0200 Subject: [PATCH] simplify foxarup bash script (#64) --- foxarup/foxarup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foxarup/foxarup b/foxarup/foxarup index 8866addc..54d5c835 100755 --- a/foxarup/foxarup +++ b/foxarup/foxarup @@ -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})"