diff options
| author | Jack Nagel | 2014-04-01 12:43:32 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-01 12:43:32 -0500 |
| commit | 06813eb9d8341d32c5517b780b699fb78192daf9 (patch) | |
| tree | 743c42a3bd882f284a7b97104a4581f1e92a8960 /Library/Formula/zookeeper.rb | |
| parent | 422872a82f96321aae65cbc20573d7d2c929a6af (diff) | |
| download | homebrew-06813eb9d8341d32c5517b780b699fb78192daf9.tar.bz2 | |
Clean up some unnecessary Pathname usage
Diffstat (limited to 'Library/Formula/zookeeper.rb')
| -rw-r--r-- | Library/Formula/zookeeper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/zookeeper.rb b/Library/Formula/zookeeper.rb index 1aebb89f1..8ec9a6c4b 100644 --- a/Library/Formula/zookeeper.rb +++ b/Library/Formula/zookeeper.rb @@ -101,12 +101,12 @@ class Zookeeper < Formula (var+'run/zookeeper/data').mkpath # Install shim scripts to bin - Dir["#{libexec}/bin/*.sh"].map { |p| Pathname.new p }.each { |path| + Pathname.glob("#{libexec}/bin/*.sh") do |path| next if path == libexec+'bin/zkEnv.sh' script_name = path.basename bin_name = path.basename '.sh' (bin+bin_name).write shim_script(script_name) - } + end # Install default config files defaults = etc/'zookeeper/defaults' |
