Skip to content

Commit

Permalink
fix --version message to not have uninitialized values
Browse files Browse the repository at this point in the history
  • Loading branch information
briandfoy committed Sep 10, 2024
1 parent e6352ac commit ac9cc99
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion script/cpan-audit
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,14 @@ sub format_text {

sub output_version {
my( $class, $exit_code ) = @_;
print "$0 version $VERSION using:\n\tCPAN::Audit @{[ CPAN::Audit->VERSION ]}\n\tCPANSA::DB @{[ CPANSA::DB->VERSION ]}\n";
print <<"HERE";
$0 version $VERSION using:
\tCPAN::Audit @{[ CPAN::Audit->VERSION ]}
\tCPAN::Audit::DB @{[ CPAN::Audit::DB->VERSION // '<not installed>' ]}
\tCPANSA::DB @{[ CPANSA::DB->VERSION // '<not installed>' ]}
HERE

exit($exit_code);
}

Expand Down

0 comments on commit ac9cc99

Please sign in to comment.