summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2017-06-30 04:53:34 +0200
committertv <tv@krebsco.de>2017-06-30 04:55:39 +0200
commitdbe4cc21e33ccc22b9dd352dd8c6913d60a0cbc0 (patch)
tree8374d7531f67ef0aaa7d4ec0b5a1321ea83808bb
parent74522bba94a3a62dcaed15c6ab9ff4e064a654ab (diff)
pkgs.whatsupnix: print gawk output ASAP
-rw-r--r--krebs/5pkgs/simple/whatsupnix/whatsupnix.bash2
-rw-r--r--shell.nix4
2 files changed, 3 insertions, 3 deletions
diff --git a/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash b/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash
index 127209570..2ad9aadc9 100644
--- a/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash
+++ b/krebs/5pkgs/simple/whatsupnix/whatsupnix.bash
@@ -26,7 +26,7 @@ gawk -v failed_drvs="$failed_drvs" '
match($0, /^builder for ‘(\/nix\/store\/[^’]+\.drv)’ failed/, m) {
print m[1] >> failed_drvs
}
- { print $0 }
+ { print $0; fflush("/dev/stdout") }
'
case $# in
diff --git a/shell.nix b/shell.nix
index d8f3184db..302429a4c 100644
--- a/shell.nix
+++ b/shell.nix
@@ -137,7 +137,7 @@
-I "$target_path" \
"$@" \
2>&1 |
- ${pkgs.coreutils}/bin/stdbuf -oL ${pkgs.whatsupnix}/bin/whatsupnix
+ ${pkgs.whatsupnix}/bin/whatsupnix
'';
utils.deploy = pkgs.writeScript "utils.deploy" /* sh */ ''
@@ -150,7 +150,7 @@
-I "$target_path" \
"$@" \
2>&1 |
- ${pkgs.coreutils}/bin/stdbuf -oL ${pkgs.whatsupnix}/bin/whatsupnix
+ ${pkgs.whatsupnix}/bin/whatsupnix
'';
hook.get-version = pkgs.writeScript "hook.get-version" /* sh */ ''