diff options
| author | Christian HoĢltje | 2012-09-15 09:47:04 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-15 12:56:18 -0700 |
| commit | e1a68f1ffbac9dc8209cc9ac2c8f2e34d11867af (patch) | |
| tree | d8885d1ecb5bb0ce7e13e63835f590370d22e1de /Library | |
| parent | 360be75b4c4e286365d71664d9a8ab277d7b1fb3 (diff) | |
| download | homebrew-e1a68f1ffbac9dc8209cc9ac2c8f2e34d11867af.tar.bz2 | |
Prevent linkapps from creating duplicate aliases
`brew linkapps` was creating `MacVim` on the first run, then
`MacVim alias` on the second run.
Closes #14955.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmds/brew-linkapps.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/cmds/brew-linkapps.rb b/Library/Contributions/cmds/brew-linkapps.rb index ec0f658d4..40723dec0 100755 --- a/Library/Contributions/cmds/brew-linkapps.rb +++ b/Library/Contributions/cmds/brew-linkapps.rb @@ -32,7 +32,7 @@ HOMEBREW_CELLAR.subdirs.each do |keg| appname = File.basename(p, ".app") target = HOME_APPS+"/"+appname if File.exist? target - if File.symlink? target or finder_alias? target + if File.symlink?(target) || finder_alias?(target) system "rm", target else onoe "#{target} already exists, skipping." |
