Skip to content

Commit 52083e6

Browse files
committed
Updated my.cnf template to support items with no values
1 parent 1d9eaa6 commit 52083e6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/my.cnf.erb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
<% if v.is_a?(Hash) -%>
33
[<%= k %>]
44
<% @options[k].sort.map do |ki, vi| -%>
5+
<% if vi and vi != '' -%>
56
<%= ki %> = <%= vi %>
7+
<% else -%>
8+
<%= ki %>
9+
<% end -%>
610
<% end -%>
711

812
<% end -%>

0 commit comments

Comments
 (0)