diff options
| author | Jack Nagel | 2014-09-29 14:24:26 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-09-29 14:24:26 -0500 |
| commit | 6714f53176ac1469f467e9e4b59acf8fd7d19222 (patch) | |
| tree | c7457c3291a17e9bb0d13726c443246ce4e63e1d /Library/Formula | |
| parent | fe3ca23956b76df097971f156f83cdb58aa23fb4 (diff) | |
| download | homebrew-6714f53176ac1469f467e9e4b59acf8fd7d19222.tar.bz2 | |
openvpn: pass array to inreplace rather than looping
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/openvpn.rb | 6 |
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 |
