summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc.cornella@live.com>2018-06-12 19:54:47 +0200
committerGitHub <noreply@github.com>2018-06-12 19:54:47 +0200
commitbe5bff2e86872c00536191265aa9fdef225af100 (patch)
tree2e6bada63b13b54c97ab9ad39204e1bec587b2d2
parent7a9bab1d77e2c22c331ce98a7245d0ba5d348353 (diff)
downloadzsh-be5bff2e86872c00536191265aa9fdef225af100.tar.gz
zsh-be5bff2e86872c00536191265aa9fdef225af100.tar.bz2
zsh-be5bff2e86872c00536191265aa9fdef225af100.zip
Allow FreeBSD to correctly detect number of CPUs
Use the same scheme as Darwin - sysctl instead of nproc, which doesn't exist in FreeBSD Closes #2545 Co-authored-by: Daniel Bye <dbye@users.noreply.github.com>
-rw-r--r--plugins/bundler/bundler.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index 6b10b78d1..ea199d09a 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -57,7 +57,7 @@ bundle_install() {
if _bundler-installed && _within-bundled-project; then
local bundler_version=`bundle version | cut -d' ' -f3`
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
- if [[ "$OSTYPE" = darwin* ]]
+ if [[ "$OSTYPE" = (darwin|freebsd)* ]]
then
local cores_num="$(sysctl -n hw.ncpu)"
else