Browse files

don't overwrite configuration file if it already exists

  • Loading branch information...
1 parent 139a1d8 commit 4d9aedd57fed4b4ca5f20032d3540e4394d0c0fa @neodude neodude committed Mar 18, 2009
Showing with 3 additions and 0 deletions.
  1. +3 −0 install.rb
@@ -6,5 +6,8 @@
mkdir_p File.join(RAILS_ROOT, "vendor", "sprockets")
mkdir_p File.join(RAILS_ROOT, "app", "javascripts")
touch File.join(RAILS_ROOT, "app", "javascripts", "application.js")
+unless File.exists?(File.join(RAILS_ROOT, "config", "sprockets.yml"))
cp File.join(File.dirname(__FILE__), "config", "sprockets.yml"),
File.join(RAILS_ROOT, "config")

0 comments on commit 4d9aedd

Please sign in to comment.