docker-lbrynet/scripts/get_release.sh
2019-01-29 19:01:05 +07:00

13 lines
281 B
Bash
Executable file

#!/bin/bash
URL=$(
curl -si https://api.github.com/repos/lbryio/lbry/releases/latest|
grep browser_download_url|
sed -E 's/.*"([^"]+)".*/\1/'|
grep linux
)
echo "Getting the latest release from $URL..."
curl -sOL $URL
unzip lbrynet-linux.zip
rm lbrynet-linux.zip