summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2017-04-16 23:32:05 +0200
committerlassulus <lass@lassul.us>2017-04-16 23:32:05 +0200
commit6187206a02ed9bc7b21fdfd9c32e0b57f6f23365 (patch)
tree3c77df69218b4af938e5268201b07f830a84c294
parent8f89bb5d3d5e8f2e2deb70a7029321d05c5d256f (diff)
irc-announce: fix cat2 on live systems
-rw-r--r--krebs/5pkgs/irc-announce/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/5pkgs/irc-announce/default.nix b/krebs/5pkgs/irc-announce/default.nix
index e1f4919d5..6eb725b71 100644
--- a/krebs/5pkgs/irc-announce/default.nix
+++ b/krebs/5pkgs/irc-announce/default.nix
@@ -24,7 +24,7 @@ pkgs.writeDashBin "irc-announce" ''
# echo2 and cat2 are used output to both, stdout and stderr
# This is used to see what we send to the irc server. (debug output)
echo2() { echo "$*"; echo "$*" >&2; }
- cat2() { tee /dev/stderr; }
+ cat2() { awk '{print;print > "/dev/stderr"}'; }
# privmsg_cat transforms stdin to a privmsg
privmsg_cat() { awk '{ print "PRIVMSG "ENVIRON["IRC_CHANNEL"]" :"$0 }'; }