Skip to content

Commit

Permalink
Improved cpdist to use expand_file to cope with '//' in filenames.
Browse files Browse the repository at this point in the history
  • Loading branch information
igal committed Mar 1, 2010
1 parent 303e51b commit 982836d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cpdist.rb
Expand Up @@ -10,5 +10,6 @@
# # Same thing with cpdist:
# cpdist(filename)
def cpdist(filename, *args)
return cp(dist+filename, filename, *args)
# TODO improve #cp to do this on its own
return cp(File.expand_path(dist+filename), File.expand_path(filename), *args)
end

0 comments on commit 982836d

Please sign in to comment.