We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db8563d commit 6091cadCopy full SHA for 6091cad
lib/tasks/erb2haml.rake
@@ -59,7 +59,7 @@ namespace :haml do
59
puts '-'*80
60
begin
61
puts 'Would you like to delete the original .erb files? (This is not recommended unless you are under version control.) (y/n)'
62
- should_delete = ENV["FORCE_ORIGINAL_ERB_DELETE"] || STDIN.gets.chomp.downcase[0]
+ should_delete = ENV["FORCE_ORIGINAL_ERB_DELETE"] ? "y" : STDIN.gets.chomp.downcase[0]
63
end until ['y', 'n'].include?(should_delete)
64
65
if should_delete == 'y'
0 commit comments