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

Merge pull request #43 from c-geek/master

[fix] #42 Install latest version available
This commit is contained in:
M5oul 2017-03-17 16:07:52 +01:00 committed by GitHub
commit 3581725912

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" | head -1 | cut -d\" -f4) 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)
version=$(echo $url | cut -d/ -f8) version=$(echo $url | cut -d/ -f8)
# Retrieve debian package and install it # Retrieve debian package and install it