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

[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
This commit is contained in:
Moul 2016-06-01 11:38:51 +00:00
parent e47e44ad61
commit 45244f04e0

View file

@ -47,9 +47,9 @@ ynh_app_setting_set $app port $port
arch=$(uname -m) arch=$(uname -m)
if [ $arch == "x86_64" ]; then if [ $arch == "x86_64" ]; then
arch="x64" arch="x64"
wget -nc https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb -P /tmp fi
#elif [ $arch == "armv7l" ]; then if [ $arch == "x64" ]; then #|| $arch == "armv7l" ]
# wget -nc https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb -P /tmp wget -nc --quiet https://github.com/duniter/duniter/releases/download/$version/duniter-$version-linux-$arch.deb -P /tmp
else else
ynh_die "$arch is not currently supported." 2 ynh_die "$arch is not currently supported." 2
fi fi