runtests: die if curl version can be found

Closes #10813
This commit is contained in:
Daniel Stenberg 2023-03-22 12:53:56 +01:00
parent 5d1ecbcbd2
commit 70afa0d251
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -5970,7 +5970,8 @@ if(!$randseed) {
localtime(time);
# seed of the month. December 2019 becomes 201912
$randseed = ($year+1900)*100 + $mon+1;
open(C, "$CURL --version 2>/dev/null|");
open(C, "$CURL --version 2>/dev/null|") ||
die "could not get curl version!";
my @c = <C>;
close(C);
# use the first line of output and get the md5 out of it