Browse code

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

Chris Sims authored on 17/09/2011 at 23:34:09
Showing 1 changed files
... ...
@@ -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