aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/node.rb
diff options
context:
space:
mode:
authorMike McQuaid2014-04-06 18:12:14 +0100
committerMike McQuaid2014-04-06 18:12:14 +0100
commit0901e7761736f00db73353b0dd86c09a10e2b7bc (patch)
treea7b6e976baddc1b9252af6fb924dbaabb6283b30 /Library/Formula/node.rb
parent7311cf32486885e53cacb50174fb9bfbe1bbaf65 (diff)
downloadhomebrew-0901e7761736f00db73353b0dd86c09a10e2b7bc.tar.bz2
node: remove install_symlink exist? guards.
Diffstat (limited to 'Library/Formula/node.rb')
-rw-r--r--Library/Formula/node.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/Library/Formula/node.rb b/Library/Formula/node.rb
index ad8c5a53d..a633672e0 100644
--- a/Library/Formula/node.rb
+++ b/Library/Formula/node.rb
@@ -61,16 +61,13 @@ class Node < Formula
Pathname.glob(npm_root/"man/*") do |man|
dir = send(man.basename)
man.children.each do |file|
- next if (dir/file.basename).exist?
dir.install_symlink(file)
end
end
if build.with? "completion"
- unless (bash_completion/"npm").exist?
- bash_completion.install_symlink \
- npm_root/"lib/utils/completion.sh" => "npm"
- end
+ bash_completion.install_symlink \
+ npm_root/"lib/utils/completion.sh" => "npm"
end
end