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:
parent
d13202f43b
commit
c78df56801
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user