Permalink
Browse files

only define CLEAR, CYAN and WHITE if not defined already, fixes rails…

…_upgrade on rails 3.1
  • Loading branch information...
1 parent 795ef87 commit ab5cad0a7ef3fae316011dade7c2a3a10ea6da97 @cthiel cthiel committed Jul 20, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/tasks/rails_upgrade_tasks.rake
@@ -39,9 +39,9 @@ namespace :rails do
puts new_config
end
- CLEAR = "\e[0m"
- CYAN = "\e[36m"
- WHITE = "\e[37m"
+ CLEAR = "\e[0m" unless defined? CLEAR
+ CYAN = "\e[36m" unless defined? CYAN
+ WHITE = "\e[37m" unless defined? WHITE
desc "Backs up your likely modified files so you can run the Rails 3 generator on your app with little risk"
task :backup do

0 comments on commit ab5cad0

Please sign in to comment.