mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-09-14 13:48:16 +02:00
Add "use warnings" + correct subroutine prototypes declaration
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
# - Hosts which match the regex patterns should be avoided
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More;
|
||||
use Data::Dumper;
|
||||
# use JSON;
|
||||
@@ -150,7 +151,7 @@ if ( $os ne "darwin" ){
|
||||
done_testing($tests);
|
||||
# unlink "tmp.json";
|
||||
|
||||
sub json($) {
|
||||
sub json {
|
||||
my $file = shift;
|
||||
$file = `cat $file`;
|
||||
unlink $file;
|
||||
|
||||
Reference in New Issue
Block a user