]> granicus.if.org Git - pgbadger/commitdiff
Fix remote ssh command error sh: 2: Syntax error: "|" unexpected. Thanks to Herve...
authorDarold Gilles <gilles@darold.net>
Tue, 15 Jul 2014 08:04:44 +0000 (10:04 +0200)
committerDarold Gilles <gilles@darold.net>
Tue, 15 Jul 2014 08:04:44 +0000 (10:04 +0200)
pgbadger

index 56b89ad9070a222b986e9d3d8f6ad5a55f969990..85868d7b65ddad34423f9a337948628a7daf28c0 100755 (executable)
--- a/pgbadger
+++ b/pgbadger
@@ -854,6 +854,7 @@ $tmp_last_parsed = 'tmp_' . basename($last_parsed) if ($last_parsed);
 # Main loop reading log files
 my $global_totalsize = 0;
 my @given_log_files = ( @log_files );
+chomp(@given_log_files);
 
 # Verify that the file has not changed for incremental move
 if (!$remote_host) {