arch.sh: use nproc instead of grepping /proc/cpuinfo

This commit is contained in:
Matthias Grob
2019-10-17 14:27:06 +02:00
committed by Daniel Agar
parent be1f966e5f
commit cefa7ec5dc
+1 -1
View File
@@ -138,7 +138,7 @@ if [[ $INSTALL_SIM == "true" ]]; then
;
# enable multicore gazebo compilation
sudo sed -i '/MAKEFLAGS=/c\MAKEFLAGS="-j'$(($(grep -c processor /proc/cpuinfo)+2))'"' /etc/makepkg.conf
sudo sed -i '/MAKEFLAGS=/c\MAKEFLAGS="-j'$(($(nproc)+2))'"' /etc/makepkg.conf
# install gazebo from AUR
yay -S gazebo --noconfirm