Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
support stdout for @Stantheman
  • Loading branch information
akerl committed Sep 3, 2014
1 parent 9f263ee commit d99e6a4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions bin/githubchart
Expand Up @@ -42,8 +42,11 @@ OptionParser.new do |opts|
end.parse!

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

Chart = GithubChart.new(options).svg

File.open(SVG_Path, 'w') { |file| file << Chart }
if SVG_Path.nil?
puts Chart
else
File.open(SVG_Path, 'w') { |file| file << Chart }
end

0 comments on commit d99e6a4

Please sign in to comment.