From c78df568013bd949cdfe695da2581b420f10d81b Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 12 Jun 2003 23:05:12 +0000
Subject: [PATCH] get and use only the first line of the curl --version output

---
 tests/runtests.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index db3c3083f3..e73e20a152 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -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;
-- 
GitLab