From b0a60e44f30028e0cf2391406576da416b1af5ee Mon Sep 17 00:00:00 2001 From: Henrik N Date: Sun, 22 Jul 2012 21:14:59 +0200 Subject: [PATCH] Unbreak generate_only task. The isolate task would overwrite the stash_dir local, breaking the integrate task. --- Rakefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Rakefile b/Rakefile index c13b0ad..90d2feb 100644 --- a/Rakefile +++ b/Rakefile @@ -200,10 +200,10 @@ task :isolate, :filename do |t, args| else filename = get_stdin("Enter a post file name: ") end - stash_dir = "#{source_dir}/#{stash_dir}" - FileUtils.mkdir(stash_dir) unless File.exist?(stash_dir) + full_stash_dir = "#{source_dir}/#{stash_dir}" + FileUtils.mkdir(full_stash_dir) unless File.exist?(full_stash_dir) Dir.glob("#{source_dir}/#{posts_dir}/*.*") do |post| - FileUtils.mv post, stash_dir unless post.include?(filename) + FileUtils.mv post, full_stash_dir unless post.include?(filename) end end