diff options
| author | elliottcable | 2013-09-07 12:52:55 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-17 06:52:56 -0700 |
| commit | e8a892068ecfe853f2f363764f228b9335d9bcab (patch) | |
| tree | 7f101a741a226da5303abbb2f1e23882dd999c87 /Library/Contributions/cmd | |
| parent | a126946a9be8a1915ce516a674ffe4663583f691 (diff) | |
| download | brew-e8a892068ecfe853f2f363764f228b9335d9bcab.tar.bz2 | |
make brew-linkapps default to /Applications
Also adds support for a new `--local` flag, and documentation for the whole command.
Closes Homebrew/homebrew#22378.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Contributions/cmd')
| -rwxr-xr-x | Library/Contributions/cmd/brew-linkapps.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-linkapps.rb b/Library/Contributions/cmd/brew-linkapps.rb index 41f1459a2..571aedc73 100755 --- a/Library/Contributions/cmd/brew-linkapps.rb +++ b/Library/Contributions/cmd/brew-linkapps.rb @@ -1,7 +1,7 @@ -# Links any Applications (.app) found in installed prefixes to ~/Applications +# Links any Applications (.app) found in installed prefixes to /Applications require 'keg' -TARGET_DIR = ARGV.include?("--system") ? "/Applications" : File.expand_path("~/Applications") +TARGET_DIR = ARGV.include?("--local") ? File.expand_path("~/Applications") : "/Applications" unless File.exist? TARGET_DIR opoo "#{TARGET_DIR} does not exist, stopping." |
