Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 85eaab1

Browse files
committed
Prevent check command running if module can't execute
Fixes #10
1 parent 0b49412 commit 85eaab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/loaded_module.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def run
4545
end
4646

4747
def check
48-
return unless module_loaded?
48+
return unless module_loaded? && module_can_execute?
4949
state = context.module.check
5050

5151
if state == :vulnerable

0 commit comments

Comments
 (0)