Make it more apparent that bash time is not used

Signed-off-by: Nic Boet <nic@boet.cc>
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
This commit is contained in:
Nic Boet 2023-02-27 00:18:04 +01:00 committed by Andreas K. Hüttel
parent 5948a367b6
commit f2e3c07e81
No known key found for this signature in database
GPG key ID: DC2B16215ED5412A

View file

@ -421,8 +421,13 @@ run_catalyst_commands() {
build_failure=0
timeprefix=()
which time >/dev/null && timeprefix=( "time" )
# bash built-in time function is not used
if ! which time >/dev/null ; then
timeprefix=()
echo "sys-process/time is optional for build resource utilization"
else
timeprefix=( "time" )
fi
JOB_PIDS=()
JOB_RETS=()