aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-09-17 16:46:05 -0700
committerBrandon Mathis <brandon@imathis.com>2011-09-17 16:46:05 -0700
commit41cbe7825149d1cbf97890ff1e59aac190a502ba (patch)
tree2f738f199efe8634bf73e0d1ad85fd550a5dec88 /Rakefile
parent728bdad5ca20de107e88a9cbd75757126a2b8bd5 (diff)
parent1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8 (diff)
downloadmy_new_personal_website-41cbe7825149d1cbf97890ff1e59aac190a502ba.tar.xz
my_new_personal_website-41cbe7825149d1cbf97890ff1e59aac190a502ba.zip
Merge pull request #154 from jcsims/rake_dotcopy_fix
Fixes #150. Strip leading path before checking for excluded file.
Diffstat (limited to 'Rakefile')
-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