1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/duniter_ynh.git synced 2024-09-03 18:26:35 +02:00

[fix] Switch to latest duniter release

This commit is contained in:
nemsia 2017-05-11 00:01:25 +02:00
parent 2ddb2cc18e
commit 9611455fcf

View file

@ -2,7 +2,7 @@
INSTALL_DUNITER_DEBIAN_PACKAGE () { INSTALL_DUNITER_DEBIAN_PACKAGE () {
# Retrieve url of last version and version number # Retrieve url of last version and version number
url=$(curl -s https://api.github.com/repos/duniter/duniter/releases | grep "browser_" | grep $arch | grep "linux" | grep "server" | sort -r | head -1 | cut -d\" -f4) url=$(curl -s https://api.github.com/repos/duniter/duniter/releases/latest | grep "browser_" | grep $arch | grep "linux" | grep "server" | sort -r | head -1 | cut -d\" -f4)
version=$(echo $url | cut -d/ -f8) version=$(echo $url | cut -d/ -f8)
# Retrieve debian package and install it # Retrieve debian package and install it