diff options
| author | tv <tv@krebsco.de> | 2017-04-19 10:23:58 +0200 | 
|---|---|---|
| committer | tv <tv@krebsco.de> | 2017-04-19 10:23:58 +0200 | 
| commit | decb6064ec7e25cf85667d270ee9c8688c4b7aed (patch) | |
| tree | d1fee9fa54ee0f0333e1928305fee9bcc415afbb | |
| parent | 66849259eea9e7d24ad6c096b5246b06ba51e303 (diff) | |
Revert "irc-announce: fix cat2 on live systems"
This reverts commit 6187206a02ed9bc7b21fdfd9c32e0b57f6f23365.
Lol, no.  Yes, /dev/stderr isn't POSIX (only fd 2 is and gawk has that
path hardcoded to the fd and thus it works), but the error is somewhere
else and "fixing" it like this doesn't help anyone.
| -rw-r--r-- | krebs/5pkgs/irc-announce/default.nix | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/krebs/5pkgs/irc-announce/default.nix b/krebs/5pkgs/irc-announce/default.nix index 6eb725b71..e1f4919d5 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() { awk '{print;print > "/dev/stderr"}'; } +  cat2() { tee /dev/stderr; }    # privmsg_cat transforms stdin to a privmsg    privmsg_cat() { awk '{ print "PRIVMSG "ENVIRON["IRC_CHANNEL"]" :"$0 }'; } | 
