From 45244f04e0b1102e8ca4a81df785e2147f640917 Mon Sep 17 00:00:00 2001 From: Moul Date: Wed, 1 Jun 2016 11:38:51 +0000 Subject: [PATCH] [enh] enhance way of retrieving debian packages - use one line to retrieve the debian package - use `--quiet` option for wget command to avoid warning messages about downloading --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index 307ec33..912ece5 100755 --- a/scripts/install +++ b/scripts/install @@ -47,9 +47,9 @@ ynh_app_setting_set $app port $port arch=$(uname -m) if [ $arch == "x86_64" ]; then arch="x64" - wget -nc https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb -P /tmp -#elif [ $arch == "armv7l" ]; then -# wget -nc https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb -P /tmp +fi +if [ $arch == "x64" ]; then #|| $arch == "armv7l" ] + wget -nc --quiet https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb -P /tmp else ynh_die "$arch is not currently supported." 2 fi