Skip to content

Commit

Permalink
build: Pass path into grep instead of using cat
Browse files Browse the repository at this point in the history
grep should be given the filename directly instead of using cat
to pass the file contents.

Change-Id: Ic5275ac0f057f3d134fe57f43672a73fa7e3d7de
Signed-off-by: frk <[email protected]>
  • Loading branch information
frk1 authored and LorDClockaN committed Feb 23, 2017
1 parent f6c501a commit 12d552d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,7 @@ function mka() {
make -C $T -j `sysctl hw.ncpu|cut -d" " -f2` "$@"
;;
*)
mk_timer schedtool -B -n 10 -e ionice -n 7 make -C $T -j$(cat /proc/cpuinfo | grep "^processor" | wc -l) "$@"
mk_timer schedtool -B -n 10 -e ionice -n 7 make -C $T -j$(grep "^processor" /proc/cpuinfo | wc -l) "$@"
;;
esac
Expand Down Expand Up @@ -2268,7 +2268,7 @@ function mms() {
make -C $T -j $NUM_CPUS "$@"
;;
*)
local NUM_CPUS=$(cat /proc/cpuinfo | grep "^processor" | wc -l)
local NUM_CPUS=$(grep "^processor" /proc/cpuinfo | wc -l)
ONE_SHOT_MAKEFILE="__none__" \
mk_timer schedtool -B -n 1 -e ionice -n 1 \
make -C $T -j $NUM_CPUS "$@"
Expand Down

0 comments on commit 12d552d

Please sign in to comment.