From f81001bfdb26c9dd03ce1197e81c29d98d3c368d Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 7 Mar 2021 16:44:25 -0700 Subject: [PATCH] Girocco/CLIUtil.pm: join progress message arguments with ' ' If more than one message argument is passed to the Girocco::CLIUtil::Progress->emitfh method, join them together with a ' ' and use that as the message. Signed-off-by: Kyle J. McKay --- Girocco/CLIUtil.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Girocco/CLIUtil.pm b/Girocco/CLIUtil.pm index 5462fdc..ec23a11 100644 --- a/Girocco/CLIUtil.pm +++ b/Girocco/CLIUtil.pm @@ -190,10 +190,11 @@ BEGIN {eval{ sub emitfh { my $self = shift; - my ($fh, $msg) = @_; + my $fh = shift; + my $msg = join(' ', @_); defined($msg) or return; chomp $msg; - $msg ne "" or return; + $msg ne '' or return; $self->clear; printf $fh "%s\n", $msg; $self->restore; -- 2.11.4.GIT