Skip to content

Commit 51d7c32

Browse files
committed
Only setup output dir if we'll be outputting documentation
1 parent de83ed0 commit 51d7c32

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rdoc/rdoc.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ def document(argv)
401401

402402
@exclude = @options.exclude
403403

404-
@last_modified = setup_output_dir @options.op_dir, @options.force_update
404+
unless @options.only_undocumented then
405+
@last_modified = setup_output_dir @options.op_dir, @options.force_update
406+
end
405407

406408
start_time = Time.now
407409

0 commit comments

Comments
 (0)