From 9576af6b66c09fa7908922a150409ea4d5d7bb33 Mon Sep 17 00:00:00 2001 From: Santiago Boselli Date: Fri, 21 Aug 2020 19:16:27 -0300 Subject: [PATCH] Fix version Regex in Binary install script Previous regex was including the "v" in the query, causing the release links to 404, since the filenames in the releases do not contain the "v". --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index aa4ac18..041e807 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -VERSION=$(curl --silent "https://api.github.com/repos/miguelmota/cointop/releases/latest" | grep -Po --color=never '"tag_name": "\K.*?(?=")') +VERSION=$(curl --silent "https://api.github.com/repos/miguelmota/cointop/releases/latest" | grep -Po --color=never '"tag_name": ".\K.*?(?=")') OSNAME="linux" if [[ $(uname) == 'Darwin' ]]; then @@ -9,7 +9,7 @@ fi ( cd /tmp - wget https://github.com/miguelmota/cointop/releases/download/${VERSION}/cointop_${VERSION}_${OSNAME}_amd64.tar.gz + wget https://github.com/miguelmota/cointop/releases/download/v${VERSION}/cointop_${VERSION}_${OSNAME}_amd64.tar.gz tar -xvzf cointop_${VERSION}_${OSNAME}_amd64.tar.gz cointop sudo mv cointop /usr/local/bin/cointop