11 lines
364 B
Bash
11 lines
364 B
Bash
PREFIX=/tmp
|
|
NAME=pyload
|
|
PROJECT=pyload/pyload
|
|
RELEASE=$(curl -s https://api.github.com/repos/${PROJECT}/releases/latest | grep tarball_url | cut -d '"' -f 4 | awk -F "/" {'print $8'})
|
|
|
|
|
|
wget -c -P ${PREFIX} https://github.com/${PROJECT}/releases/download/${RELEASE}/${NAME}_${RELEASE}_amd64.deb
|
|
|
|
dpkg -i ${PREFIX}/${NAME}_${RELEASE}_amd64.deb
|
|
apt-get -f install
|