Skip to content

Commit d99e6a4

Browse files
committed
support stdout for @Stantheman
1 parent 9f263ee commit d99e6a4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/githubchart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,11 @@ OptionParser.new do |opts|
4242
end.parse!
4343

4444
SVG_Path = ARGV.shift
45-
fail 'Please provide the target location for the SVG' if SVG_Path.nil?
4645

4746
Chart = GithubChart.new(options).svg
4847

49-
File.open(SVG_Path, 'w') { |file| file << Chart }
48+
if SVG_Path.nil?
49+
puts Chart
50+
else
51+
File.open(SVG_Path, 'w') { |file| file << Chart }
52+
end

0 commit comments

Comments
 (0)