From f14d7cef7cce3ce79b880f71b25e03e5fb844882 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petr=20=C5=A0tetiar?= Date: Tue, 13 Sep 2022 07:38:10 +0200 Subject: [PATCH] scripts/download.pl: silence can't exec curl warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit When running build in verbose mode `make V=s` we can see a lot of following warnings when curl is not available in the system: Can't exec "curl": No such file or directory at scripts/download.pl line 77. So lets fix it by redirecting of the stderr to null hole. Signed-off-by: Petr Å tetiar (cherry picked from commit c836ca84e8f641e10a8349a8f9b7432b33d6cec1) --- scripts/download.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/download.pl b/scripts/download.pl index 99708c456f..16f808da09 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -76,7 +76,7 @@ sub download_cmd($) { my $url = shift; my $have_curl = 0; - if (open CURL, '-|', 'curl', '--version') { + if (open CURL, "curl --version 2>/dev/null |") { if (defined(my $line = readline CURL)) { $have_curl = 1 if $line =~ /^curl /; } -- 2.30.2