FIX: support removing all occurences of a word/string
This commit is contained in:
parent
e27ca3019b
commit
80e573e794
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue