minor code formatting change
git-svn-id: https://beef.googlecode.com/svn/trunk@615 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -23,7 +23,9 @@ class Migration
|
||||
def update_commands!
|
||||
db_commands = [], folders = ''
|
||||
|
||||
BeEF::Models::CommandModule.all.each {|db_command| db_commands.push(db_command.path)}
|
||||
BeEF::Models::CommandModule.all.each {|db_command|
|
||||
db_commands.push(db_command.path)
|
||||
}
|
||||
|
||||
Dir.foreach("#{$root_dir}/modules/commands/") do |folder|
|
||||
folders += "#{folder}|" if not ['.', '..'].include? folder and File.directory? "#{$root_dir}/modules/commands/#{folder}"
|
||||
|
||||
Reference in New Issue
Block a user