Skip to content

Commit b86fd44

Browse files
committedMay 17, 2020
Update error message
1 parent 6e7848f commit b86fd44

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎generate.rb

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
#!/usr/bin/env ruby
22

33
system("csv2md > /dev/null 2>&1")
4-
error("csv2md is not intalled, Please run `bundle install` first") unless $?.exitstatus == 0
4+
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
510

611
require 'commonmarker'
712
require 'imgkit'

0 commit comments

Comments
 (0)
Failed to load comments.