parallel: Fixed bug #39572: --tty and --joblog do not work

This commit is contained in:
Ole Tange 2013-07-26 14:55:51 +02:00
parent 92773c7899
commit 3f0c1c9b34

View file

@ -4431,9 +4431,6 @@ sub print {
# cleanup tmp files if --files was set
unlink $self->fd_file_name(1);
}
# Only relevant for grouping
$Global::grouped or return;
my $command = $self->sshlogin_wrap();
if($Global::joblog) {
my $cmd;
@ -4453,6 +4450,10 @@ sub print {
$self->set_job_in_joblog();
}
# Printing is only relevant for grouped output.
$Global::grouped or return;
my $command = $self->sshlogin_wrap();
if(($opt::dryrun or $Global::verbose) and $Global::grouped) {
if($Global::verbose <= 1) {
print STDOUT $self->replaced(),"\n";