Skip to content

Commit

Permalink
[XrdCl] xrdcp: turn off progress bar when not running on a terminal, c…
Browse files Browse the repository at this point in the history
…loses #1608.
  • Loading branch information
simonmichal committed Mar 18, 2022
1 parent 4e9b15d commit 62d1170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdCl/XrdClCopy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ int main( int argc, char **argv )
}

ProgressDisplay progress;
if( config.Want(XrdCpConfig::DoNoPbar) )
if( config.Want(XrdCpConfig::DoNoPbar) || !isatty( fileno( stdout ) ) )
progress.PrintProgressBar( false );

bool posc = false;
Expand Down

0 comments on commit 62d1170

Please sign in to comment.