k 5 irc-announce: cd to /tmp
This commit is contained in:
parent
3c5906dd62
commit
3ecebca46f
|
@ -29,6 +29,8 @@ pkgs.writeDashBin "irc-announce" ''
|
||||||
# privmsg_cat transforms stdin to a privmsg
|
# privmsg_cat transforms stdin to a privmsg
|
||||||
privmsg_cat() { awk '{ print "PRIVMSG "ENVIRON["IRC_CHANNEL"]" :"$0 }'; }
|
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"
|
# ircin is used to feed the output of netcat back to the "irc client"
|
||||||
# so we can implement expect-like behavior with sed^_^
|
# so we can implement expect-like behavior with sed^_^
|
||||||
# XXX mkselfdestructingtmpfifo would be nice instead of this cruft
|
# XXX mkselfdestructingtmpfifo would be nice instead of this cruft
|
||||||
|
|
Loading…
Reference in New Issue
Block a user