mirror of
https://github.com/curl/curl.git
synced 2026-07-24 01:47:20 +03:00
get and use only the first line of the curl --version output
This commit is contained in:
parent
d13202f43b
commit
c78df56801
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue