aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJason A. Donenfeld2012-09-18 00:45:24 +0200
committerAdam Vandenberg2012-09-30 10:54:29 -0700
commit76d5ba32a9982ecd1b2fecc2261e4440224c9e90 (patch)
treefd9fb99337c1d549cef7e3b72de9bded82e99169 /Library
parent57ed645f17b85b65125a26ede112346eaf82ce93 (diff)
downloadhomebrew-76d5ba32a9982ecd1b2fecc2261e4440224c9e90.tar.bz2
Add .sh to list of valid library extenions.
As discussed with mistym, it's not only compiled code that goes in /usr/lib, but any types of libraries. As such, .pm was added to the valid extensions list a while back. Unfortunately, .sh was not added, even though configuration includes and platform function library shell files are often put in /usr/lib as shellscript libraries. This patch adds .sh to the list of valid library extensions. Closes #14993. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 213704107..5ceaa9fe4 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -383,7 +383,7 @@ class FormulaInstaller
return unless f.lib.directory?
valid_extensions = %w(.a .dylib .framework .jnilib .la .o .so
- .jar .prl .pm)
+ .jar .prl .pm .sh)
non_libraries = f.lib.children.select do |g|
next if g.directory?
not valid_extensions.include? g.extname