Skip to content

Commit 28db1ed

Browse files
committed
[C++] Update grep for CPU count.
1 parent f1db049 commit 28db1ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cppbuild/cppbuild

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ case "$(uname)" in
1010
ncpus=$(sysctl -n hw.ncpu)
1111
;;
1212
Linux*)
13-
ncpus=$(lscpu -p | egrep -v '^#' | wc -l)
13+
ncpus=$(lscpu -p | grep -c -E -v '^#')
1414
;;
1515
esac
1616

0 commit comments

Comments
 (0)