Skip to content

Commit 96536ab

Browse files
committed
Fixed code to grep number of processors in /proc/cpuinfo
1 parent 2c515ab commit 96536ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build-scripts/detect-environment

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ detect_cores()
382382
;;
383383
linux)
384384
echo "Detected OS family is linux"
385-
NUM_CORES="$(> /proc/cpuinfo grep -c '^processor')"
385+
NUM_CORES="$(grep -c '^processor' /proc/cpuinfo)"
386386
;;
387387
hpux)
388388
echo "Detected OS family is hpux"

0 commit comments

Comments
 (0)