aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sims <jcsims@gmail.com>2011-09-17 18:34:09 -0500
committerChris Sims <jcsims@gmail.com>2011-09-17 18:34:09 -0500
commit1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8 (patch)
tree2f738f199efe8634bf73e0d1ad85fd550a5dec88
parent728bdad5ca20de107e88a9cbd75757126a2b8bd5 (diff)
downloadmy_new_personal_website-1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8.tar.xz
my_new_personal_website-1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8.zip
Fixes #150. Strip leading path before checking for excluded file.
Diffstat (limited to '')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 95e95c7a..ca76518a 100644
--- a/Rakefile
+++ b/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