Skip to content

Commit

Permalink
fix quoting of env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
costela committed Jan 31, 2018
1 parent a109d02 commit 65e2f08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions spec/defines/daemon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
'owner' => 'root',
'group' => 'root'
).with_content(
%r{SOMEVAR=42\n}
%r{SOMEVAR="42"\n}
)
}
elsif ['centos-6-x86_64', 'redhat-6-x86_64', 'centos-7-x86_64', 'redhat-7-x86_64'].include?(os)
Expand All @@ -163,7 +163,7 @@
'owner' => 'root',
'group' => 'root'
).with_content(
%r{SOMEVAR=42\n}
%r{SOMEVAR="42"\n}
)
}
end
Expand Down
2 changes: 1 addition & 1 deletion templates/daemon.env.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<% @env_vars.each do |key, value| -%>
<%= key %>=<%= value %>
<%= key %>="<%= value %>"
<% end -%>

0 comments on commit 65e2f08

Please sign in to comment.