From 828fb0ed76475b57ee78dbf4c839857302406fe0 Mon Sep 17 00:00:00 2001 From: Adam Sanderson Date: Sat, 11 Dec 2010 13:57:28 -0800 Subject: [PATCH] Do not override customized file when --customize is called. --- bin/qw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/qw b/bin/qw index a927204..dc18a94 100755 --- a/bin/qw +++ b/bin/qw @@ -39,9 +39,9 @@ opts = OptionParser.new do |opts| puts "HOME directory must be defined." exit(1) 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| - FileUtils.cp(path, dir, :verbose=>true, :preserve=>true) + FileUtils.cp(path, dir, :verbose=>true) unless File.exist?(path) end @qwandry.launch dir end