Skip to content

Commit ee13c07

Browse files
committed
Fix stack trace from %W prompt format
Should have been framework.db.active.
2 parents bc4d6c2 + 5f8d58f commit ee13c07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rex/ui/text/shell.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def run(&block)
178178
input.prompt.gsub!(/%J/, framework.jobs.length.to_s)
179179
input.prompt.gsub!(/%L/, Rex::Socket.source_address("50.50.50.50"))
180180
input.prompt.gsub!(/%D/, ::Dir.getwd)
181-
if framework.db && framework.db.workspace
181+
if framework.db.active
182182
input.prompt.gsub!(/%W/, framework.db.workspace.name)
183183
end
184184
self.init_prompt = input.prompt

0 commit comments

Comments
 (0)