diff --git a/main.rb b/main.rb index 1139572..805286f 100644 --- a/main.rb +++ b/main.rb @@ -74,11 +74,12 @@ def read_brew(*args) git 'config', '--global', 'user.name', user_name git 'config', '--global', 'user.email', user_email - # Always tap homebrew/core, otherwise brew can't find formulae - brew 'tap', 'homebrew/core' - - # Tap the requested tap if applicable - brew 'tap', tap unless tap.blank? + if tap.blank? + brew 'tap', 'homebrew/core', '--force' + else + # Tap the requested tap if applicable + brew 'tap', tap + end # Append additional PR message message = if message.blank?