aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorRyan Gibbons <insanity5902@gmail.com>2011-08-28 22:29:30 -0500
committerRyan Gibbons <insanity5902@gmail.com>2011-08-28 22:29:30 -0500
commitaa095689e48be97f77b610ef73a13aee403f9d9c (patch)
tree737b0e3b0999dafe7ca9778ce0f4ed202370e927 /Rakefile
parent9b52d40a54d4213502ab53ec8b0fec7ef863cb28 (diff)
downloadmy_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 '')
-rw-r--r--Rakefile10
1 files changed, 4 insertions, 6 deletions
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