summaryrefslogtreecommitdiffstats
path: root/krebs
diff options
context:
space:
mode:
authorlassulus <lass@lassul.us>2016-12-27 22:58:56 +0100
committerlassulus <lass@lassul.us>2016-12-27 22:58:56 +0100
commit3ecebca46f8924de9dd97bd79a1f0272f39d9ae6 (patch)
tree05eceb9be656895041be83ebbdb008816843c1a2 /krebs
parent3c5906dd62704f0a1cdc14ec7c5c6569d7625dbe (diff)
k 5 irc-announce: cd to /tmp
Diffstat (limited to 'krebs')
-rw-r--r--krebs/5pkgs/irc-announce/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/krebs/5pkgs/irc-announce/default.nix b/krebs/5pkgs/irc-announce/default.nix
index f02cec3c6..af6b35ec6 100644
--- a/krebs/5pkgs/irc-announce/default.nix
+++ b/krebs/5pkgs/irc-announce/default.nix
@@ -29,6 +29,8 @@ pkgs.writeDashBin "irc-announce" ''
# privmsg_cat transforms stdin to a privmsg
privmsg_cat() { awk '{ print "PRIVMSG "ENVIRON["IRC_CHANNEL"]" :"$0 }'; }
+ # we cd to /tmp here to be able to create a tmpdir in the first place
+ cd /tmp
# ircin is used to feed the output of netcat back to the "irc client"
# so we can implement expect-like behavior with sed^_^
# XXX mkselfdestructingtmpfifo would be nice instead of this cruft