summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-09-11 21:03:19 +0200
committerLucio Andrés Illanes Albornoz (arab, vxp) <l.illanes@gmx.de>2016-09-11 21:03:19 +0200
commitef21c68233644d7f3a9abc3092fc3d2b7affd8a0 (patch)
tree2eac99b4b47e608e81b5ec83a98486e170f8412e
parentca3f5e5fbd90193f82ec6652a0244656e3ab68a4 (diff)
downloadmidipix_build-ef21c68233644d7f3a9abc3092fc3d2b7affd8a0.tar.bz2
midipix_build-ef21c68233644d7f3a9abc3092fc3d2b7affd8a0.tar.xz
Fixes ./build.sh BUILD_CPUS=<n>.
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index b59834fb..c6d96990 100755
--- a/build.sh
+++ b/build.sh
@@ -42,7 +42,8 @@ case ${1} in
*) exec cat build.usage; ;;
esac; shift; done;
-if [ -e /proc/cpuinfo ]; then
+if [ -z "${BUILD_CPUS}" ] \
+&& [ -e /proc/cpuinfo ]; then
BUILD_CPUS=$(awk '/^processor/{cpus++} END{print cpus}' /proc/cpuinfo);
fi;