]> granicus.if.org Git - curl/commitdiff
added additional check to avoid calling a non-existant external script.
authorGunter Knauf <gk@gknw.de>
Mon, 5 Jul 2004 23:07:59 +0000 (23:07 +0000)
committerGunter Knauf <gk@gknw.de>
Mon, 5 Jul 2004 23:07:59 +0000 (23:07 +0000)
tests/testcurl.pl

index 3ffaa53ba8fadd93f8a2f4217cce60a5dc5e47dc..24ea04fa9d761a1cb595b4bd0749274f0465d3a0 100755 (executable)
@@ -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);
 }