fix run_command return code handling

This commit is contained in:
Fabian Grünbichler
2017-04-10 15:29:29 +02:00
parent e3a191bc80
commit fc1089fc3a

View File

@ -1395,7 +1395,7 @@ sub extract_vzdump_config_vma {
my $rerr = $@;
# use exit code if no stderr output and not just broken pipe
if (!$errstring && !$broken_pipe && $rc > 0 && $rc != 141) {
if (!$errstring && !$broken_pipe && $rc != 0 && $rc != 141) {
die "$rerr\n" if $rerr;
die "config extraction failed with exit code $rc\n";
}