diff options
author | Ryan Gibbons <insanity5902@gmail.com> | 2011-08-28 22:29:30 -0500 |
---|---|---|
committer | Ryan Gibbons <insanity5902@gmail.com> | 2011-08-28 22:29:30 -0500 |
commit | aa095689e48be97f77b610ef73a13aee403f9d9c (patch) | |
tree | 737b0e3b0999dafe7ca9778ce0f4ed202370e927 /Rakefile | |
parent | 9b52d40a54d4213502ab53ec8b0fec7ef863cb28 (diff) | |
download | my_new_personal_website-aa095689e48be97f77b610ef73a13aee403f9d9c.tar.xz my_new_personal_website-aa095689e48be97f77b610ef73a13aee403f9d9c.zip |
not using cd in copydot, breaks chained task when further cd's are called
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -197,12 +197,10 @@ end desc "copy dot files for deployment" task :copydot do - cd "#{source_dir}" do - exclusions = [".", "..", ".DS_Store"] - Dir[".*"].each do |file| - if !File.directory?(file) && !exclusions.include?(file) - cp(file, "../#{public_dir}"); - end + exclusions = [".", "..", ".DS_Store"] + Dir["#{source_dir}/.*"].each do |file| + if !File.directory?(file) && !exclusions.include?(file) + cp(file, "#{public_dir}"); end end end |