From a824958bdf22eecc4a8db01e1c40ec351adc4bb5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Moreau?= Date: Fri, 17 Mar 2017 15:53:28 +0100 Subject: [PATCH] [fix] #42 Install latest version available --- scripts/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 1817e41..691c6be 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -2,7 +2,7 @@ INSTALL_DUNITER_DEBIAN_PACKAGE () { # 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) # Retrieve debian package and install it