From 2f7cce9e419115e2c0ef0325b4e215ac9889f5d9 Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Wed, 22 Jul 2020 15:30:47 +0000 Subject: [PATCH] hwbridge: fix syntax error introduced in aeed81de291260c12934d3afe1425a3852875a01 --- .../command_dispatcher/custom_methods.rb | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/rex/post/hwbridge/ui/console/command_dispatcher/custom_methods.rb b/lib/rex/post/hwbridge/ui/console/command_dispatcher/custom_methods.rb index 3824e5e8b15b..4f3b25cd9ece 100644 --- a/lib/rex/post/hwbridge/ui/console/command_dispatcher/custom_methods.rb +++ b/lib/rex/post/hwbridge/ui/console/command_dispatcher/custom_methods.rb @@ -57,15 +57,14 @@ def load_methods(m) def cmd_generic_handler_help(cmd) @custom_methods.each do |meth| next unless meth["method_name"] =~ /#{cmd}$/ - args = "" - args = "" if meth["args"].size > 0 - print_line("Usage: #{cmd} #{args}") - print_line - meth["args"].each do |arg| - req = "" - req = " *required*" if arg.key? "required" and arg["required"] == true - print_line(" #{arg["arg_name"]}=<#{arg["arg_type"]}> #{req}") - end + args = "" + args = "" if meth["args"].size > 0 + print_line("Usage: #{cmd} #{args}") + print_line + meth["args"].each do |arg| + req = "" + req = " *required*" if arg.key? "required" and arg["required"] == true + print_line(" #{arg["arg_name"]}=<#{arg["arg_type"]}> #{req}") end end end