Skip to content

Commit 423b490

Browse files
author
Tod Beardsley
committed
Use Rex::Compat.getenv instead
Also, this would deprecate out the editor plugin.
1 parent a7025fc commit 423b490

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
@@ -629,7 +629,7 @@ def cmd_connect(*args)
629629
end
630630

631631
def cmd_edit_help
632-
editor = ENV['VISUAL'] || ENV['EDITOR']
632+
editor = Rex::Compat.getenv('VISUAL') || Rex::Compat.getenv('EDITOR')
633633
msg = "Edit the currently active module"
634634
msg = "#{msg} #{editor ? "with #{editor}" : "($EDITOR must be set first)"}."
635635
print_line "Usage: edit"

0 commit comments

Comments
 (0)