diff options
author | Petr Štetiar <ynezz@true.cz> | 2022-09-13 07:38:10 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-09-13 09:14:09 +0200 |
commit | c836ca84e8f641e10a8349a8f9b7432b33d6cec1 (patch) | |
tree | 9ee60f222c849b3d14cbf9f6f623e27c2234e4a4 /scripts/download.pl | |
parent | b21ddbfa18cd1e437e31dc0fa29408721a186c2a (diff) | |
download | upstream-c836ca84e8f641e10a8349a8f9b7432b33d6cec1.tar.gz upstream-c836ca84e8f641e10a8349a8f9b7432b33d6cec1.tar.bz2 upstream-c836ca84e8f641e10a8349a8f9b7432b33d6cec1.zip |
scripts/download.pl: silence can't exec curl warning
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 <ynezz@true.cz>
Diffstat (limited to 'scripts/download.pl')
-rwxr-xr-x | scripts/download.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/download.pl b/scripts/download.pl index ab1801aad5..90a1be4e26 100755 --- a/scripts/download.pl +++ b/scripts/download.pl @@ -74,7 +74,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 /; } |