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

@ -131,7 +131,7 @@ fi
# the bootstrap pkgs from scratch.
if [ -z "$CHROOT_READY" -a "$PKGNAME" = "base-files" ]; then
msg_normal "Installing $PKGNAME into masterdir...\n"
_log=$(mktemp --tmpdir || exit 1)
_log=$(mktemp || exit 1)
XBPS_ARCH=$XBPS_MACHINE $XBPS_INSTALL_CMD -yf $PKGNAME >${_log} 2>&1
if [ $? -ne 0 ]; then
msg_red "Failed to install $PKGNAME into masterdir, see below for errors:\n"