Skip to content
Browse files

Fixes #150. Strip leading path before checking for excluded file.

  • Loading branch information...
1 parent 728bdad commit 1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8 @jcsims jcsims committed Sep 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
View
2 Rakefile
@@ -209,7 +209,7 @@ desc "copy dot files for deployment"
task :copydot do
exclusions = [".", "..", ".DS_Store"]
Dir["#{source_dir}/**/.*"].each do |file|
- if !File.directory?(file) && !exclusions.include?(file)
+ if !File.directory?(file) && !exclusions.include?(File.basename(file))
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}"));
end
end

0 comments on commit 1a562b9

Please sign in to comment.
Something went wrong with that request. Please try again.