aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/download.pl2
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 /;
}