xbps-src: exit properly if mktemp(1) fails, not from its subshell.

Thanks @huglovefan
This commit is contained in:
Juan RP 2019-06-17 17:38:07 +02:00
parent 8614cca7df
commit 7b7d7c13a1
No known key found for this signature in database
GPG key ID: AF19F6CB482F9368
10 changed files with 12 additions and 12 deletions

View file

@ -64,7 +64,7 @@ show_pkg_build_depends() {
local f x _pkgname _srcpkg _dep found result
local _deps="$1"
result=$(mktemp || exit 1)
result=$(mktemp) || exit 1
# build time deps
for f in ${_deps}; do