... | ... |
@@ -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 |