From 59187fcf4c2212f35696c5436e2eefbc3d06116c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Lesimple?= Date: Fri, 12 Feb 2021 08:46:13 +0000 Subject: [PATCH] fix: interactive: omit inactivity msg warning when set to 0 seconds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Lesimple --- lib/perl/OVH/Bastion/interactive.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/perl/OVH/Bastion/interactive.inc b/lib/perl/OVH/Bastion/interactive.inc index ea13079..f664820 100644 --- a/lib/perl/OVH/Bastion/interactive.inc +++ b/lib/perl/OVH/Bastion/interactive.inc @@ -42,8 +42,8 @@ sub interactive { Welcome to $bastionName interactive mode, type `help' for available commands. You can use and 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