Remove homebrew-
prefix when checking if repo has already been tapped
See: https://github.com/Homebrew/homebrew/blob/master/Library/Homebrew/cmd/tap.rb Example: ``` $ brew tap neovim/homebrew-neovim $ brew tap neovim/neovim ... ```
This commit is contained in:
parent
adedc7ef3f
commit
b43329b6a0
1 changed files with 4 additions and 1 deletions
|
@ -63,8 +63,11 @@ def already_tapped(module, brew_path, tap):
|
||||||
brew_path,
|
brew_path,
|
||||||
'tap',
|
'tap',
|
||||||
])
|
])
|
||||||
|
|
||||||
taps = [tap_.strip().lower() for tap_ in out.split('\n') if tap_]
|
taps = [tap_.strip().lower() for tap_ in out.split('\n') if tap_]
|
||||||
return tap.lower() in taps
|
tap_name = re.sub('homebrew-', '', tap.lower())
|
||||||
|
|
||||||
|
return tap_name in taps
|
||||||
|
|
||||||
|
|
||||||
def add_tap(module, brew_path, tap):
|
def add_tap(module, brew_path, tap):
|
||||||
|
|
Loading…
Reference in a new issue