define file var before using it

This commit is contained in:
Dirk
2025-11-27 19:45:39 +01:00
parent a4b6d1fca0
commit 964e8924a4

View File

@@ -11,17 +11,16 @@ use Text::Diff;
my $tests = 0;
my $prg="./testssl.sh";
my $html="";
my $htmlfile="tmp.html";
my $check2run="--ip=one -4 --openssl /usr/bin/openssl --sneaky --ids-friendly --color 0 --htmlfile $htmlfile";
my $uri="github.com";
my $out="";
my $debughtml="";
my $edited_html="";
my $htmlfile="tmp.html";
# Pick /usr/bin/openssl as we want to avoid the debug messages like "Your ./bin/openssl.Linux.x86_64 doesn't support X25519"
my $diff="";
my $ip="";
die "Unable to open $prg" unless -f $prg;
printf "\n%s\n", "Doing HTML output checks";