Skip to content

Commit 7f4844a

Browse files
committed
#542 use Dir[] to resolve the 8.3 path to the full path, use Util.escape_globs to not break existing glob tests
1 parent 979eed5 commit 7f4844a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/actions/directory.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Directory < EmptyDirectory #:nodoc:
5656
attr_reader :source
5757

5858
def initialize(base, source, destination = nil, config = {}, &block)
59-
@source = File.expand_path(base.find_in_source_paths(source.to_s))
59+
@source = File.expand_path(Dir[Util.escape_globs(base.find_in_source_paths(source.to_s))].first)
6060
@block = block
6161
super(base, destination, {:recursive => true}.merge(config))
6262
end

0 commit comments

Comments
 (0)