Merge pull request #545 from YunoHost/fix-noisy-wget

[fix] Silent output/warning but display errors
This commit is contained in:
Bram 2018-10-03 02:30:27 +02:00 committed by GitHub
commit f6780aeede
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -173,7 +173,7 @@ ynh_setup_source () {
then # Use the local source file if it is present
cp $local_src $src_filename
else # If not, download the source
wget -nv -O $src_filename $src_url
local out=`wget -nv -O $src_filename $src_url 2>&1` || ynh_print_err $out
fi
# Check the control sum