From 5281ea110297a40707a4b94855d5d3da04c71e37 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sat, 11 Jan 2020 20:28:15 +0100 Subject: irc-announce: make cat2 more portable: https://github.com/poettering/systemd/commit/c9cc1a2d0c591e571f0e27dff1e9c03d341a0d7d --- krebs/5pkgs/simple/irc-announce/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/krebs/5pkgs/simple/irc-announce/default.nix b/krebs/5pkgs/simple/irc-announce/default.nix index b22e67535..dea30a056 100644 --- a/krebs/5pkgs/simple/irc-announce/default.nix +++ b/krebs/5pkgs/simple/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() { (read x ; echo "$x" ; echo "$x" >&2) } # privmsg_cat transforms stdin to a privmsg privmsg_cat() { awk '{ print "PRIVMSG "ENVIRON["IRC_CHANNEL"]" :"$0 }'; } -- cgit v1.2.3