Merge pull request #1566 from FPtje/1.11-maintenance

scripts/nix-copy-closure.in: Automatically flush STDERR handle
This commit is contained in:
Eelco Dolstra 2017-09-10 17:51:31 +02:00 committed by GitHub
commit f217acd9e7
1 changed files with 2 additions and 0 deletions

View File

@ -7,8 +7,10 @@ use Nix::Config;
use Nix::Store;
use Nix::CopyClosure;
use List::Util qw(sum);
use IO::Handle;
binmode STDERR, ":encoding(utf8)";
STDERR->autoflush(1);
if (scalar @ARGV < 1) {
print STDERR <<EOF