Improve the ask for creating PGN directory.
This commit is contained in:
parent
0c24e23aca
commit
fadc968ba1
3
Rakefile
3
Rakefile
@ -62,7 +62,8 @@ namespace :pgn do
|
||||
if Dir.exists? dir
|
||||
puts "PGN directory exists"
|
||||
else
|
||||
puts "Directory \"#{dir.shellescape}\" doesn't exist. Create it?"
|
||||
puts "Directory \"#{dir.shellescape}\" doesn't exist"
|
||||
print "Create the directory? "
|
||||
answer = $stdin.gets.chomp
|
||||
if ['Yes', 'yes', 'y'].include? answer
|
||||
FileUtils.mkdir_p dir
|
||||
|
Loading…
Reference in New Issue
Block a user