Slight changes.

This commit is contained in:
vonavi 2013-09-18 13:04:39 +03:00
parent fadc968ba1
commit c612a965e5

View File

@ -63,9 +63,9 @@ namespace :pgn do
puts "PGN directory exists" puts "PGN directory exists"
else else
puts "Directory \"#{dir.shellescape}\" doesn't exist" puts "Directory \"#{dir.shellescape}\" doesn't exist"
print "Create the directory? " print "Create the directory? > "
answer = $stdin.gets.chomp answer = $stdin.gets.chomp
if ['Yes', 'yes', 'y'].include? answer if ['Yes', 'yes', 'Y', 'y'].include? answer
FileUtils.mkdir_p dir FileUtils.mkdir_p dir
else else
abort "PGN directory wasn't created" abort "PGN directory wasn't created"