1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

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

View File

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