get and use only the first line of the curl --version output

This commit is contained in:
Daniel Stenberg 2003-06-12 23:05:12 +00:00
parent d13202f43b
commit c78df56801
1 changed files with 2 additions and 1 deletions

View File

@ -434,7 +434,8 @@ sub displaydata {
unlink($memdump); # remove this if there was one left
my $version=`$CURL -V`;
my @version=`$CURL -V`;
my $version=$version[0];
chomp $version;
my $curl = $version;