mirror of
https://github.com/moparisthebest/android.moparisthebest.org
synced 2024-11-16 06:05:00 -05:00
Merge pull request #682 from henrik/unbreak_generate_only
[BUGFIX] Unbreak generate_only task.
This commit is contained in:
commit
1a1f9905a8
6
Rakefile
6
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user