From 10770aebd9283aa7a10f03a5a9681697c144f9d3 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Wed, 19 Sep 2018 16:35:23 +0200 Subject: [PATCH] [fix] Silent output/warning but display errors --- data/helpers.d/utils | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/helpers.d/utils b/data/helpers.d/utils index 595da3c2d..07b8a6d96 100644 --- a/data/helpers.d/utils +++ b/data/helpers.d/utils @@ -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