xbps-src: exit properly if mktemp(1) fails, not from its subshell.
Thanks @huglovefan
This commit is contained in:
parent
8614cca7df
commit
7b7d7c13a1
10 changed files with 12 additions and 12 deletions
|
@ -18,7 +18,7 @@ if [ -z "$MASTERDIR" -o -z "$DISTDIR" ]; then
|
|||
fi
|
||||
|
||||
# proot does not properly return the resultcode. Workaround this
|
||||
RESULT=$(mktemp || exit 1)
|
||||
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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue