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
10 changed files with 12 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ bulk_sortdeps() {
fi
done
tmpf=$(mktemp || exit 1)
tmpf=$(mktemp) || exit 1
# Now make the real dependency graph of all pkgs to build.
# Perform a topological sort of all pkgs but only with build dependencies
# that are found in previous step.