libpbuild: limit parallel make jobs to 10, unless specified on cmd line

This commit is contained in:
2019-09-24 10:10:38 +02:00
parent 6ae8ba2e09
commit 83dc1a3de6
+1
View File
@@ -102,6 +102,7 @@ declare -i JOBS=$(pbuild::get_num_cores)
pbuild.jobs() {
if (( $1 == 0 )); then
JOBS=$(pbuild::get_num_cores)
(( JOBS > 10 )) && JOBS=10 || :
else
JOBS="$1"
fi