Also link apps found in libexec
This commit is contained in:
parent
1a5cf082d7
commit
0b0166b2e8
@ -5,6 +5,7 @@ HOME_APPS = File.expand_path("~/Applications")
|
|||||||
|
|
||||||
unless File.exist? HOME_APPS
|
unless File.exist? HOME_APPS
|
||||||
opoo "#{HOME_APPS} does not exist, stopping."
|
opoo "#{HOME_APPS} does not exist, stopping."
|
||||||
|
puts "Run `mkdir ~/Applications` first."
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -13,7 +14,7 @@ HOMEBREW_CELLAR.subdirs.each do |keg|
|
|||||||
name = keg.basename.to_s
|
name = keg.basename.to_s
|
||||||
|
|
||||||
if ((f = Formula.factory(name)).installed? rescue false)
|
if ((f = Formula.factory(name)).installed? rescue false)
|
||||||
Dir["#{f.installed_prefix}/*.app"].each do |p|
|
Dir["#{f.installed_prefix}/*.app", "#{f.installed_prefix}/libexec/*.app"].each do |p|
|
||||||
puts "Linking #{p}"
|
puts "Linking #{p}"
|
||||||
appname = File.basename(p)
|
appname = File.basename(p)
|
||||||
target = HOME_APPS+"/"+appname
|
target = HOME_APPS+"/"+appname
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user