projects
/
openwrt
/
staging
/
pepe2k.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scripts/download.pl: silence can't exec curl warning
[openwrt/staging/pepe2k.git]
/
scripts
/
download.pl
diff --git
a/scripts/download.pl
b/scripts/download.pl
index 99708c456fd6a222924ecb362924582b260c7110..16f808da093073a33063f9d83b951e503937809b 100755
(executable)
--- 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 /;
}