shlib.sh: stop using non-portable mktemp -t option
commit6a4b26a6ba10001dd0d6e9dcfd1e5bc1d0219bb3
authorKyle J. McKay <mackyle@gmail.com>
Sat, 26 Aug 2017 22:50:06 +0000 (26 15:50 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 26 Aug 2017 22:50:06 +0000 (26 15:50 -0700)
treee628e290bf70a278589fb433345b712584c0d2bc
parent06fee72b972878e61dd68aa6058fe305d7688864
shlib.sh: stop using non-portable mktemp -t option

The mktemp -t option does different things on different
platforms.  The intention being that the resulting file
gets created in the appropriate "temporary" directory.

In actuality, mktemp just looks at the TMPDIR environment
variable and defaults to /tmp if it's not set (at least
that's the wanted behavior).

Stop using the -t option and simply prefix the template
with ${TMPDIR:-/tmp}/ instead (or a reasonable but
slightly safer facsimile thereof).

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
shlib.sh