diff options
| author | Christian Höltje | 2012-09-15 09:47:04 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2012-09-15 12:56:18 -0700 |
| commit | d56957d2f8692ec5a8d7391c3db2b4c0c1a4a727 (patch) | |
| tree | e2eb9c9071c09421e831b43ce88a1ef4d7a2ab82 /Library | |
| parent | e8c372a31542a42690e51780b34d2f64454bdf60 (diff) | |
| download | brew-d56957d2f8692ec5a8d7391c3db2b4c0c1a4a727.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 Homebrew/homebrew#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." |
