diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-09-17 16:46:05 -0700 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-09-17 16:46:05 -0700 |
commit | 41cbe7825149d1cbf97890ff1e59aac190a502ba (patch) | |
tree | 2f738f199efe8634bf73e0d1ad85fd550a5dec88 /Rakefile | |
parent | 728bdad5ca20de107e88a9cbd75757126a2b8bd5 (diff) | |
parent | 1a562b9580d8f2d470e25cba3f1e6c58a4d2bdd8 (diff) | |
download | my_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-- | 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 |