aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-06-12 23:05:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-06-12 23:05:12 +0000
commitc78df568013bd949cdfe695da2581b420f10d81b (patch)
tree84f39b9a5cc54275aabdf09a7cca9b1a17eec7db /tests/runtests.pl
parentd13202f43bcb3fdc7b3625e031e568cc44c52e2d (diff)
get and use only the first line of the curl --version output
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index db3c3083f..e73e20a15 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;