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)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue