aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-09-29 14:24:26 -0500
committerJack Nagel2014-09-29 14:24:26 -0500
commit6714f53176ac1469f467e9e4b59acf8fd7d19222 (patch)
treec7457c3291a17e9bb0d13726c443246ce4e63e1d /Library/Formula
parentfe3ca23956b76df097971f156f83cdb58aa23fb4 (diff)
downloadhomebrew-6714f53176ac1469f467e9e4b59acf8fd7d19222.tar.bz2
openvpn: pass array to inreplace rather than looping
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/openvpn.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Formula/openvpn.rb b/Library/Formula/openvpn.rb
index 0de5550ae..034ac32a7 100644
--- a/Library/Formula/openvpn.rb
+++ b/Library/Formula/openvpn.rb
@@ -21,10 +21,8 @@ class Openvpn < Formula
# pam_appl header is installed in a different location on Leopard
# and older; reported upstream https://community.openvpn.net/openvpn/ticket/326
if MacOS.version < :snow_leopard
- %w[auth-pam.c pamdl.c].each do |file|
- inreplace "src/plugins/auth-pam/#{file}",
- "security/pam_appl.h", "pam/pam_appl.h"
- end
+ inreplace Dir["src/plugins/auth-pam/{auth-pam,pamdl}.c"],
+ "security/pam_appl.h", "pam/pam_appl.h"
end
# Build and install binary