Fix when 'edit' if/else indentation
This commit is contained in:
parent
4fbcf13e65
commit
34c213097e
20
bin/brew
20
bin/brew
@ -113,18 +113,18 @@ begin
|
|||||||
exec 'mate', *Dir["#{HOMEBREW_REPOSITORY}/Library/*"]<<
|
exec 'mate', *Dir["#{HOMEBREW_REPOSITORY}/Library/*"]<<
|
||||||
"#{HOMEBREW_REPOSITORY}/bin/brew"<<
|
"#{HOMEBREW_REPOSITORY}/bin/brew"<<
|
||||||
"#{HOMEBREW_REPOSITORY}/README.md"
|
"#{HOMEBREW_REPOSITORY}/README.md"
|
||||||
else
|
else
|
||||||
# we don't use ARGV.formulae as that will throw if the file doesn't parse
|
# we don't use ARGV.formulae as that will throw if the file doesn't parse
|
||||||
paths = ARGV.named.collect do |name|
|
paths = ARGV.named.collect do |name|
|
||||||
unless File.exist? path = "#{HOMEBREW_REPOSITORY}/Library/Formula/#{name}.rb"
|
unless File.exist? path = "#{HOMEBREW_REPOSITORY}/Library/Formula/#{name}.rb"
|
||||||
require 'formula'
|
require 'formula'
|
||||||
raise FormulaUnavailableError, name
|
raise FormulaUnavailableError, name
|
||||||
else
|
else
|
||||||
path
|
path
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
exec_editor *paths
|
||||||
end
|
end
|
||||||
exec_editor *paths
|
|
||||||
end
|
|
||||||
|
|
||||||
when 'up', 'update'
|
when 'up', 'update'
|
||||||
require 'update'
|
require 'update'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user