brew style --fix
This commit is contained in:
parent
4de2b56e72
commit
8baed211a7
@ -510,7 +510,7 @@ module Cask
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Directory counts as empty if it only contains a `.DS_Store`.
|
# Directory counts as empty if it only contains a `.DS_Store`.
|
||||||
if children.include?(ds_store = resolved_path/".DS_Store")
|
if children.include?((ds_store = resolved_path/".DS_Store"))
|
||||||
Utils.gain_permissions_remove(ds_store, command:)
|
Utils.gain_permissions_remove(ds_store, command:)
|
||||||
children.delete(ds_store)
|
children.delete(ds_store)
|
||||||
end
|
end
|
||||||
|
|||||||
@ -12,7 +12,7 @@ class DevelopmentTools
|
|||||||
# Give the name of the binary you look for as a string to this method
|
# Give the name of the binary you look for as a string to this method
|
||||||
# in order to get the full path back as a Pathname.
|
# in order to get the full path back as a Pathname.
|
||||||
(@locate ||= {}).fetch(tool) do |key|
|
(@locate ||= {}).fetch(tool) do |key|
|
||||||
@locate[key] = if File.executable?(path = "/usr/bin/#{tool}")
|
@locate[key] = if File.executable?((path = "/usr/bin/#{tool}"))
|
||||||
Pathname.new path
|
Pathname.new path
|
||||||
# Homebrew GCCs most frequently; much faster to check this before xcrun
|
# Homebrew GCCs most frequently; much faster to check this before xcrun
|
||||||
elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
|
elsif (path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
|
||||||
|
|||||||
@ -13,7 +13,7 @@ class DevelopmentTools
|
|||||||
glibc_path
|
glibc_path
|
||||||
elsif (homebrew_path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
|
elsif (homebrew_path = HOMEBREW_PREFIX/"bin/#{tool}").executable?
|
||||||
homebrew_path
|
homebrew_path
|
||||||
elsif File.executable?(system_path = "/usr/bin/#{tool}")
|
elsif File.executable?((system_path = "/usr/bin/#{tool}"))
|
||||||
Pathname.new system_path
|
Pathname.new system_path
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user