diff options
| author | ilovezfs | 2016-03-11 03:34:47 -0800 |
|---|---|---|
| committer | Xu Cheng | 2016-03-13 14:32:05 +0800 |
| commit | 1e1184fc2d7bae278b2806ddda296e26dcc9fe97 (patch) | |
| tree | 753598b674a39ae5977135ccbe11b495c42065d1 /Library | |
| parent | 23ee1ee49957b4c5369bec9ea336006f40e44270 (diff) | |
| download | brew-1e1184fc2d7bae278b2806ddda296e26dcc9fe97.tar.bz2 | |
superenv: fix make_jobs regular expression
HOMEBREW_MAKE_JOBS can be a multidigit number. The regex should match
the entire number not just the last digit.
Closes Homebrew/homebrew#50016.
Signed-off-by: Tim D. Smith <git@tim-smith.us>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/extend/ENV/super.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/extend/ENV/super.rb b/Library/Homebrew/extend/ENV/super.rb index 8c88cf79b..c2401602f 100644 --- a/Library/Homebrew/extend/ENV/super.rb +++ b/Library/Homebrew/extend/ENV/super.rb @@ -263,7 +263,7 @@ module Superenv alias_method :j1, :deparallelize def make_jobs - self["MAKEFLAGS"] =~ /-\w*j(\d)+/ + self["MAKEFLAGS"] =~ /-\w*j(\d+)/ [$1.to_i, 1].max end |
