From e2105dfaad7782405b0a3be84531465d9bc59d13 Mon Sep 17 00:00:00 2001 From: Will Rosecrans Date: Mon, 8 Jan 2018 15:00:20 -0800 Subject: [PATCH] Fix nproc unavailable --- build_cmake_pybullet_double.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_cmake_pybullet_double.sh b/build_cmake_pybullet_double.sh index 802b87d04..48c0ccdc4 100755 --- a/build_cmake_pybullet_double.sh +++ b/build_cmake_pybullet_double.sh @@ -6,7 +6,7 @@ fi mkdir -p build_cmake cd build_cmake cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release .. -make -j $(command nproc || echo 12) +make -j $(command nproc 2>/dev/null || echo 12) cd examples cd pybullet if [ -e pybullet.dylib ]; then