12 lines
379 B
Bash
Executable File
12 lines
379 B
Bash
Executable File
#!/usr/bin/env 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} http://github.com/${PROJECT}/releases/download/${RELEASE}/${NAME}_${RELEASE}_amd64.deb
|
|
|
|
dpkg -i ${PREFIX}/${NAME}_${RELEASE}_amd64.deb
|
|
apt install -f
|