scripts/download.pl: silence can't exec curl warning
[openwrt/staging/pepe2k.git] / scripts / download.pl
index 99708c456fd6a222924ecb362924582b260c7110..16f808da093073a33063f9d83b951e503937809b 100755 (executable)
@@ -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 /;
                }