Skip to content

Commit 204b43b

Browse files
author
kernelsmith
committed
fix typo in args.shift
1 parent 2a6a833 commit 204b43b

File tree

1 file changed

+1
-1
lines changed
  • lib/msf/ui/console/command_dispatcher

1 file changed

+1
-1
lines changed

lib/msf/ui/console/command_dispatcher/core.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2454,7 +2454,7 @@ def cmd_grep(*args)
24542454
# limit to arg matches
24552455
match_mods[:max] = val.to_i
24562456
# delete opt and val from args list
2457-
args.shift(s)
2457+
args.shift(2)
24582458
when "-A"
24592459
# also return arg lines after a match
24602460
output_mods[:after] = val.to_i

0 commit comments

Comments
 (0)