using backquote as argument resulted in only first line as first argument to removeAsciiEscapes

This commit is contained in:
Rob Vermaas
2011-06-10 10:48:51 +00:00
parent 48b435c2de
commit 5d166150f9
2 changed files with 4 additions and 2 deletions

View File

@ -156,7 +156,8 @@ sub sendEmailNotification {
my $loglines = 50;
my $logfile = $build->resultInfo->logfile;
my $logtext = defined $logfile && -e $logfile ? removeAsciiEscapes(`tail -$loglines $logfile`) : "No logfile available.\n";
my $logtext = defined $logfile && -e $logfile ? `tail -$loglines $logfile` : "No logfile available.\n";
$logtext = removeAsciiEscapes($logtext);
my $body = "Hi,\n"
. "\n"