]> granicus.if.org Git - curl/commitdiff
get and use only the first line of the curl --version output
authorDaniel Stenberg <daniel@haxx.se>
Thu, 12 Jun 2003 23:05:12 +0000 (23:05 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 12 Jun 2003 23:05:12 +0000 (23:05 +0000)
tests/runtests.pl

index db3c3083f33fb82a6c3319614bd8ca836241eca3..e73e20a1520df4ddbce84de6ce7ce01cce744793 100755 (executable)
@@ -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;