We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6bc73fe commit c1a0df0Copy full SHA for c1a0df0
lib/chef-dk/skeletons/code_generator/recipes/repo.rb
@@ -37,7 +37,7 @@
37
execute("initialize-git") do
38
command("git init .")
39
cwd repo_dir
40
- not_if { "#{repo_dir}/.gitignore" }
+ not_if { File.exists?("#{repo_dir}/.gitignore") }
41
end
42
43
template "#{repo_dir}/.gitignore" do
0 commit comments