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:
@@ -18,7 +18,7 @@ if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
|
||||
fi
|
||||
|
||||
# proot does not properly return the resultcode. Workaround this
|
||||
RESULT=$(mktemp /tmp/proot_result.XXXXXXXXXX)
|
||||
RESULT=$(mktemp || exit 1)
|
||||
|
||||
PROOT_NO_SECCOMP=1 proot -r $MASTERDIR -w / -b "$RESULT:/.result" -b $DISTDIR:/void-packages \
|
||||
${HOSTDIR:+-b $HOSTDIR:/host} -b /proc:/proc -b /dev:/dev \
|
||||
|
||||
Reference in New Issue
Block a user