irc-announce: mktemp --tmpdir

This commit is contained in:
tv 2016-12-28 09:14:33 +01:00
parent bf4e2bd961
commit 4f87f3bf4a

View File

@ -32,7 +32,7 @@ pkgs.writeDashBin "irc-announce" ''
# 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
tmpdir="$(mktemp -d irc-announce_XXXXXXXX)"
tmpdir=$(mktemp --tmpdir -d irc-announce_XXXXXXXX)
cd "$tmpdir"
mkfifo ircin
trap "