]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
script: move get_processors to lib-build.sh
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 1 Nov 2022 13:57:16 +0000 (09:57 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 18 Feb 2025 22:58:08 +0000 (17:58 -0500)
commit58ca27984b672877bb0434313fe8a078bdd9bf46
tree054702ab9713374d680a5e1bf4ecac7bf894c74d
parent3c534210feaf80123f2e1b4dffa7fb2ffe1cc06f
script: move get_processors to lib-build.sh

This function can be more useful because the NPROC value can
be provided regardless of how many cores nproc actually detects
and may be handy in a restricted environment like a container.

The new version quotes some values and uses $((...)) as per shellcheck
warning that "expr is antiquated".

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit a76a0cfdc63b8f7daefefeb1af542db56310a2da)
src/script/lib-build.sh
src/script/run-make.sh