Jamie Cameron
2022-01-12 21:11:51 -08:00
parent 652d40801b
commit 9e8747ede4

View File

@@ -1493,7 +1493,7 @@ if (&shell_is_bash()) {
$cmd = "set -o pipefail ; $cmd";
}
local $out = &backquote_logged("($cmd) 2>&1");
if ($? || !-s $file) {
if ($? || !-s $file || $out =~ /Aborted\s+connection|max_allowed_packet/i) {
return $out;
}
return undef;