We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e7848f commit b86fd44Copy full SHA for b86fd44
generate.rb
@@ -1,7 +1,12 @@
1
#!/usr/bin/env ruby
2
3
system("csv2md > /dev/null 2>&1")
4
-error("csv2md is not intalled, Please run `bundle install` first") unless $?.exitstatus == 0
+unless $?.exitstatus == 0
5
+ print "Missing dependencies. Want to run `bundle install`? [Y/n]: "
6
+ answer = gets.chop.downcase.strip
7
+
8
+ system("bundle install") if answer == "y"
9
+end
10
11
require 'commonmarker'
12
require 'imgkit'
0 commit comments