diff --git a/lib/tasks/posts.rake b/lib/tasks/posts.rake index 53e2706adc4..8eb22e5afae 100644 --- a/lib/tasks/posts.rake +++ b/lib/tasks/posts.rake @@ -128,6 +128,7 @@ task 'posts:remap', [:find, :replace] => [:environment] do |_,args| elsif !replace confirm_replace = ask("Are you sure you want to remove all occurences of '#{find}'? (Y/n) ") exit 1 unless (confirm_replace == "" || confirm_replace.downcase == 'y') + replace = "" end puts "Remapping"