aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/download_strategy.rb
diff options
context:
space:
mode:
authorJack Nagel2015-02-14 15:28:40 -0500
committerJack Nagel2015-02-14 15:28:40 -0500
commit5cd80996e9fb766b6241b861d49d7dd52a36026c (patch)
treeac8da2a21b0db5a4b91ae47abbdc9d6cc040a35e /Library/Homebrew/download_strategy.rb
parent53bb0fbab4015bd87632fcdfafda645002145d78 (diff)
downloadhomebrew-5cd80996e9fb766b6241b861d49d7dd52a36026c.tar.bz2
Remove unnecessary use of Dir[]
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
-rw-r--r--Library/Homebrew/download_strategy.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 70338d37e..40f0504a0 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -672,7 +672,7 @@ class CVSDownloadStrategy < VCSDownloadStrategy
end
def stage
- cp_r Dir[cached_location+"{.}"], Dir.pwd
+ cp_r File.join(cached_location, "."), Dir.pwd
end
private
@@ -751,7 +751,7 @@ class BazaarDownloadStrategy < VCSDownloadStrategy
def stage
# The export command doesn't work on checkouts
# See https://bugs.launchpad.net/bzr/+bug/897511
- cp_r Dir[cached_location+"{.}"], Dir.pwd
+ cp_r File.join(cached_location, "."), Dir.pwd
rm_r ".bzr"
end