Skip to content

Commit 0b7d074

Browse files
author
Ashley Penney
committed
Merge pull request #364 from thedonkdonk/master
Some options can not take a argument.
2 parents f19e857 + fc14afe commit 0b7d074

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

templates/my.cnf.erb

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
<% if v.is_a?(Hash) -%>
33
[<%= k %>]
44
<% @options[k].sort.map do |ki, vi| -%>
5-
<% if vi and vi != '' -%>
5+
<% if vi == true -%>
6+
<%= ki %>
7+
<% elsif vi and vi != '' -%>
68
<%= ki %> = <%= vi %>
7-
<% else -%>
9+
<% elsif vi -%>
810
<%= ki %>
911
<% end -%>
1012
<% end -%>

0 commit comments

Comments
 (0)