Do not override customized file when --customize is called.

This commit is contained in:
Adam Sanderson 2010-12-11 13:57:28 -08:00
parent 9485b5e157
commit 828fb0ed76
1 changed files with 2 additions and 2 deletions

4
bin/qw
View File

@ -39,9 +39,9 @@ opts = OptionParser.new do |opts|
puts "HOME directory must be defined." puts "HOME directory must be defined."
exit(1) exit(1)
else else
FileUtils.mkdir(dir, :verbose=>true) unless File.exist?(dir) FileUtils.mkdir_p(dir, :verbose=>true) unless File.exist?(dir)
Dir[File.dirname(__FILE__) + '/../templates/*'].each do |path| Dir[File.dirname(__FILE__) + '/../templates/*'].each do |path|
FileUtils.cp(path, dir, :verbose=>true, :preserve=>true) FileUtils.cp(path, dir, :verbose=>true) unless File.exist?(path)
end end
@qwandry.launch dir @qwandry.launch dir
end end