From: Gunter Knauf Date: Mon, 5 Jul 2004 23:07:59 +0000 (+0000) Subject: added additional check to avoid calling a non-existant external script. X-Git-Tag: curl-7_12_1~108 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c59c429a69752715c778a168f4ca5a13af08250e;p=curl added additional check to avoid calling a non-existant external script. --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index 3ffaa53ba..24ea04fa9 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -432,9 +432,8 @@ if ($targetos ne '' && $targetos =~ /netware/) { system('../../curlver'); } } else { -logit "display curl$binext --version output"; - -system("./src/curl$binext --version"); + logit "display curl$binext --version output"; + system("./src/curl$binext --version"); } if ($gnulikebuild) { @@ -465,7 +464,7 @@ if ($gnulikebuild) { } # create a tarball if we got that option. -if ($mktarball ne '') { +if (($mktarball ne '') && (-f $mktarball)) { system($mktarball); }