aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/linkapps.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/linkapps.rb')
-rw-r--r--Library/Homebrew/cmd/linkapps.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/linkapps.rb b/Library/Homebrew/cmd/linkapps.rb
index c7685855f..bd88409aa 100644
--- a/Library/Homebrew/cmd/linkapps.rb
+++ b/Library/Homebrew/cmd/linkapps.rb
@@ -11,6 +11,8 @@ require "keg"
require "formula"
module Homebrew
+ module_function
+
def linkapps
target_dir = linkapps_target(local: ARGV.include?("--local"))
@@ -55,8 +57,6 @@ module Homebrew
end
end
- private
-
def linkapps_target(opts = {})
local = opts.fetch(:local, false)
Pathname.new(local ? "~/Applications" : "/Applications").expand_path