mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-10-16 01:21:15 +02:00
Fix a stack trace when no mode is selected.
git-svn-id: file:///home/svn/framework3/trunk@12859 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
de931d51f0
commit
fd04578a90
@ -126,6 +126,11 @@ rescue OptionParser::InvalidOption
|
|||||||
exit(1)
|
exit(1)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if not mode
|
||||||
|
puts "A mode must be selected"
|
||||||
|
exit(1)
|
||||||
|
end
|
||||||
|
|
||||||
# check if the file is a directory if it is collect all the entries
|
# check if the file is a directory if it is collect all the entries
|
||||||
ARGV.each do |file|
|
ARGV.each do |file|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user