From 052bcfd8ec4e4c94e0f932cd98043ac598720ac4 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 24 Aug 2018 09:19:40 -0400 Subject: [PATCH] Fixed processes build limit in configure.sh Former-commit-id: 47a2b809aa0d8f647ce782f33f5af42804756444 --- configure.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/configure.sh b/configure.sh index dcc3ec1a..3503b69b 100755 --- a/configure.sh +++ b/configure.sh @@ -1,17 +1,16 @@ #!/bin/bash +if [[ $2 =~ ^[0-9]+$ ]] ; then + processes=$2 +else + processes=$(nproc) +fi + install() { ## Set up library paths - export PYTHONPATH=$RUNPATH/SuperBuild/install/lib/python2.7/dist-packages:$RUNPATH/SuperBuild/src/opensfm:$PYTHONPATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RUNPATH/SuperBuild/install/lib - if [[ $2 =~ ^[0-9]+$ ]] ; then - processes=$2 - else - processes=$(nproc) - fi - ## Before installing echo "Updating the system" apt-get update