aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2022-09-13 07:38:10 +0200
committerPetr Štetiar <ynezz@true.cz>2022-09-21 11:52:40 +0200
commitf14d7cef7cce3ce79b880f71b25e03e5fb844882 (patch)
tree5302b8566b4f972a302d654769fd67408929a94b
parentf0bca34f16327c6001515f9c73c2c284574c7b6d (diff)
downloadupstream-f14d7cef7cce3ce79b880f71b25e03e5fb844882.tar.gz
upstream-f14d7cef7cce3ce79b880f71b25e03e5fb844882.tar.bz2
upstream-f14d7cef7cce3ce79b880f71b25e03e5fb844882.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> (cherry picked from commit c836ca84e8f641e10a8349a8f9b7432b33d6cec1)
-rwxr-xr-xscripts/download.pl2
1 files changed, 1 insertions, 1 deletions
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 /;
}