xbps-src: cleaned up usage of mktemp(1).

This one was on my TODO for a long while... fixes unportable
arguments (checked with the NetBSD's manual page).
This commit is contained in:
Juan RP 2019-06-17 15:10:16 +02:00
parent ea7a6e858d
commit f59b295903
9 changed files with 11 additions and 11 deletions

View file

@ -5,7 +5,7 @@ run_func() {
: ${funcname:=$func}
logpipe=$(mktemp -u --tmpdir=${XBPS_STATEDIR} ${pkgname}_${XBPS_CROSS_BUILD}_XXXXXXXX.logpipe)
logpipe=$(mktemp -u -p ${XBPS_STATEDIR} ${pkgname}_${XBPS_CROSS_BUILD}_XXXXXXXX.logpipe || exit 1)
logfile=${XBPS_STATEDIR}/${pkgname}_${XBPS_CROSS_BUILD}_${funcname}.log
msg_normal "${pkgver:-xbps-src}: running ${desc:-${func}} ...\n"