FIX: support removing all occurences of a word/string

This commit is contained in:
Arpit Jalan 2017-01-24 12:52:38 +05:30
parent e27ca3019b
commit 80e573e794

View File

@ -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"