Do not override customized file when --customize is called.
This commit is contained in:
parent
9485b5e157
commit
828fb0ed76
4
bin/qw
4
bin/qw
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue