mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 10:49:41 +02:00
libpbuild: limit parallel make jobs to 10, unless specified on cmd line
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user