build: remove python3 dependency from installer
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
knoflook 2021-10-13 15:02:03 +02:00
parent d804276cf2
commit c266316f7e
Signed by: knoflook
GPG Key ID: D6A1D0E8FC4FEF1C
1 changed files with 1 additions and 5 deletions

View File

@ -35,11 +35,7 @@ function install_abra_release {
fi
# FIXME: support different architectures
release_url=$(curl -s "$ABRA_RELEASE_URL" |
python3 -c "import sys, json; \
payload = json.load(sys.stdin); \
url = [a['browser_download_url'] for a in payload['assets'] if 'linux_x86_64' in a['name']][0]; \
print(url)")
release_url=$(curl -s $ABRA_RELEASE_URL | sed -rn 's/.*"assets":\[\{[^}]*"name":"abra.*linux_x86_64"[^}]*"browser_download_url":"([^"]*)".*\].*/\1/p' -)
echo "downloading $ABRA_VERSION x86_64 binary release for abra..."
curl --progress-bar "$release_url" --output "$HOME/.local/bin/abra"