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