1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-11 18:20:26 +09:00

Fix __NumProc setup if nproc is not available (#51002)

This commit is contained in:
Gleb Balykov 2021-05-01 21:24:00 +03:00 committed by GitHub
parent 27a62d9ade
commit bad6ea00b5
Signed by: github
GPG key ID: 4AEE18F83AFDEB23

View file

@ -282,7 +282,11 @@ elif [[ "$platform" == "NetBSD" || "$platform" == "SunOS" ]]; then
elif [[ "$platform" == "Darwin" ]]; then
__NumProc=$(($(getconf _NPROCESSORS_ONLN)+1))
else
__NumProc=$(nproc --all)
if command -v nproc > /dev/null 2>&1; then
__NumProc=$(nproc --all)
else
__NumProc=1
fi
fi
while :; do