fix: interactive: omit inactivity msg warning when set to 0 seconds

Signed-off-by: Stéphane Lesimple <stephane.lesimple+bastion@ovhcloud.com>
This commit is contained in:
Stéphane Lesimple 2021-02-12 08:46:13 +00:00 committed by Stéphane Lesimple
parent d430c602bf
commit 59187fcf4c

View file

@ -42,8 +42,8 @@ sub interactive {
Welcome to $bastionName interactive mode, type `help' for available commands.
You can use <tab> and <tab><tab> for autocompletion.
You'll be disconnected after $interactiveModeTimeout seconds of inactivity.
EOM
print "You'll be disconnected after $interactiveModeTimeout seconds of inactivity.\n" if $interactiveModeTimeout;
# dynamically get the list of plugins we can use