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:
parent
e47e44ad61
commit
45244f04e0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue