Fixes #150. Strip leading path before checking for excluded file.
Brandon Mathis authored on 17/09/2011 at 23:46:05... | ... |
@@ -209,7 +209,7 @@ desc "copy dot files for deployment" |
209 | 209 |
task :copydot do |
210 | 210 |
exclusions = [".", "..", ".DS_Store"] |
211 | 211 |
Dir["#{source_dir}/**/.*"].each do |file| |
212 |
- if !File.directory?(file) && !exclusions.include?(file) |
|
212 |
+ if !File.directory?(file) && !exclusions.include?(File.basename(file)) |
|
213 | 213 |
cp(file, file.gsub(/#{source_dir}/, "#{public_dir}")); |
214 | 214 |
end |
215 | 215 |
end |