Merge pull request #251 from kdisneur/hotfix/tap-prefixed-by-homebrew

Remove `homebrew-` prefix when checking if repo has already been tapped
reviewable/pr18780/r1
Brian Coca 9 years ago
commit 06210612ee

@ -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…
Cancel
Save