lib/tapioca/helpers/git_attributes.rb in tapioca-0.16.4 vs lib/tapioca/helpers/git_attributes.rb in tapioca-0.16.5
- old
+ new
@@ -26,9 +26,10 @@
# We don't want to start creating folders, just to write
# the `.gitattributes` file. So, if the folder doesn't
# exist, we just return.
return unless path.exist?
- File.write(path.join(".gitattributes"), content)
+ git_attributes_path = path.join(".gitattributes")
+ File.write(git_attributes_path, content) unless git_attributes_path.exist?
end
end
end