Skip to content

Commit db8563d

Browse files
committed
adding force override environment variable
1 parent 3474b2e commit db8563d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tasks/erb2haml.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ namespace :haml do
5959
puts '-'*80
6060
begin
6161
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 = STDIN.gets.chomp.downcase[0]
62+
should_delete = ENV["FORCE_ORIGINAL_ERB_DELETE"] || STDIN.gets.chomp.downcase[0]
6363
end until ['y', 'n'].include?(should_delete)
6464

6565
if should_delete == 'y'

0 commit comments

Comments
 (0)