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:
@@ -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"
|
||||
|
Reference in New Issue
Block a user