mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 14:32:42 +01:00
scripts/nix-copy-closure.in: Automatically flush STDERR handle
Fixes https://github.com/NixOS/nixops/issues/455
This commit is contained in:
parent
e8235c4f3e
commit
b3ad7c5052
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue