Created
October 16, 2018 05:56
-
-
Save satour/49a463aaa981da7434db696a815972cf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unless ARGV[0] | |
puts "Please specify file(s)." | |
exit | |
end | |
ARGV.each{|f| | |
unless f.index("md") || f.index("markdown") | |
puts "ERR: Bad file extention: #{f}" | |
puts "Only *.md or *.markdown will be accepted." | |
exit | |
end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment