From aa095689e48be97f77b610ef73a13aee403f9d9c Mon Sep 17 00:00:00 2001 From: Ryan Gibbons Date: Sun, 28 Aug 2011 22:29:30 -0500 Subject: not using cd in copydot, breaks chained task when further cd's are called --- Rakefile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index 4c5017b5..702292a8 100644 --- a/Rakefile +++ b/Rakefile @@ -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 -- cgit v1.2.1