Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Prevent linkapps from creating duplicate aliases #14955

Closed
wants to merge 1 commit into from

2 participants

Christian Höltje Adam Vandenberg
Christian Höltje

brew linkapps was creating MacVim on the first run, then
MacVim alias on the second run.

Christian Höltje docwhat Prevent linkapps from creating duplicate aliases
`brew linkapps` was creating `MacVim` on the first run, then
`MacVim alias` on the second run.
76b873b
Adam Vandenberg adamv closed this pull request from a commit
Christian Höltje docwhat 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>
e1a68f1
Adam Vandenberg adamv closed this in e1a68f1
Dennis Luxen DennisOSRM referenced this pull request from a commit
Christian Höltje docwhat 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>
85be87b
Charlie Sharpsteen Sharpie referenced this pull request from a commit in Sharpie/homebrew
Christian Höltje docwhat 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>
6ee607c
snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
Christian Höltje docwhat 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>
613de6a
Christian Höltje docwhat deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 15, 2012
  1. Christian Höltje

    Prevent linkapps from creating duplicate aliases

    docwhat authored
    `brew linkapps` was creating `MacVim` on the first run, then
    `MacVim alias` on the second run.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Library/Contributions/cmds/brew-linkapps.rb
2  Library/Contributions/cmds/brew-linkapps.rb
View
@@ -32,7 +32,7 @@ def create_finder_alias(from, to)
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."
Something went wrong with that request. Please try again.