diff options
author | Chris Sims <jcsims@gmail.com> | 2011-09-17 18:34:09 -0500 |
---|---|---|
committer | Chris Sims <jcsims@gmail.com> | 2011-09-17 18:34:09 -0500 |
commit | 1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8 (patch) | |
tree | 2f738f199efe8634bf73e0d1ad85fd550a5dec88 | |
parent | 728bdad5ca20de107e88a9cbd75757126a2b8bd5 (diff) | |
download | my_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-- | Rakefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |