We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e995ccf commit f5f7b4dCopy full SHA for f5f7b4d
lib/rex/ui/text/shell.rb
@@ -128,7 +128,7 @@ def run(&block)
128
129
while true
130
# If the stop flag was set or we've hit EOF, break out
131
- break if (self.stop_flag or self.stop_count > 1)
+ break if self.stop_flag || self.stop_count > 1
132
133
init_tab_complete
134
@@ -378,6 +378,8 @@ def get_input_line
378
output.input = nil
379
log_output(input.prompt)
380
else
381
+ self.stop_count += 1
382
+ next if self.stop_count > 1
383
run_single("quit")
384
end
385
0 commit comments