diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-11-08 23:01:25 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-11-08 23:01:25 +0200 |
| commit | 032e721532da56582da651762272352d338f73cc (patch) | |
| tree | fea4e8c4b2c7993c44b6cfcd4d083ecfc9164b79 | |
| parent | c9bb2f571895edb6a01ca5528c944d09bc222823 (diff) | |
| parent | 3b380e24b2ddf2bcc5febf3ebd65f84f3bf373c5 (diff) | |
| download | monzero-gui-032e721532da56582da651762272352d338f73cc.tar.gz monzero-gui-032e721532da56582da651762272352d338f73cc.tar.xz monzero-gui-032e721532da56582da651762272352d338f73cc.zip | |
Merge pull request #106
3b380e2 Allow user to set number of parallel jobs (moneromooo.monero)
| -rwxr-xr-x | get_libwallet_api.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/get_libwallet_api.sh b/get_libwallet_api.sh index ea1d8b1c..d72b071e 100755 --- a/get_libwallet_api.sh +++ b/get_libwallet_api.sh @@ -11,7 +11,9 @@ if [ -z $BUILD_TYPE ]; then BUILD_TYPE=Release fi # thanks to SO: http://stackoverflow.com/a/20283965/4118915 -CPU_CORE_COUNT=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu) +if test -z "$CPU_CORE_COUNT"; then + CPU_CORE_COUNT=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu) +fi pushd $(pwd) ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
