scripts/nix-copy-closure.in: Automatically flush STDERR handle

Fixes https://github.com/NixOS/nixops/issues/455
This commit is contained in:
Falco Peijnenburg 2017-09-10 17:38:18 +02:00
parent e8235c4f3e
commit b3ad7c5052
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