apply shellcommands ignored_errors regexen to STDOUT as well as STDERR, RT#15347
authorivan <ivan>
Sun, 12 Feb 2012 01:40:14 +0000 (01:40 +0000)
committerivan <ivan>
Sun, 12 Feb 2012 01:40:14 +0000 (01:40 +0000)
FS/FS/part_export/shellcommands.pm

index edbe78f..b3b7545 100644 (file)
@@ -506,6 +506,8 @@ sub ssh_cmd { #subroutine, not method
         $output =~ s/$ignored_error//g;
         $errput =~ s/$ignored_error//g;
     }
+    $output =~ s/[\s\n]//g;
+    $errput =~ s/[\s\n]//g;
     chomp($output);
     chomp($errput);
   }