Fix typo
This commit is contained in:
parent
9a69c8ed24
commit
6d97712a41
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -52,7 +52,7 @@ task :post do
|
|||
puts "Error - date format must be YYYY-MM-DD, please check you typed it correctly!"
|
||||
exit -1
|
||||
end
|
||||
filename = File.join(CONFIG['posts'], "##{date}-#{slug}.#{CONFIG['post_ext']}")
|
||||
filename = File.join(CONFIG['posts'], "#{date}-#{slug}.#{CONFIG['post_ext']}")
|
||||
if File.exist?(filename)
|
||||
abort("rake aborted!") if ask("#{filename} already exists. Do you want to overwrite?", ['y', 'n']) == 'n'
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue