Skip to content

Commit 5419351

Browse files
committed
don't check gpg version if gpg does not exist
1 parent b44df98 commit 5419351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Module/Signature.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ sub _verify {
143143
}
144144

145145
sub _has_gpg {
146-
my $gpg = _which_gpg();
146+
my $gpg = _which_gpg() or return;
147147
`$gpg --version` =~ /GnuPG.*?(\S+)\s*$/m or return;
148148
return $1;
149149
}

0 commit comments

Comments
 (0)