<% if node[:platform] != "windows" -%>
#!/bin/bash
<% end -%>
<% @params["recipes"].each do |recipe| -%>
rs_run_recipe -n <%= recipe["recipe"] %> <%= if recipe["json_file"] != "" then "-j #{recipe["json_file"]}" end %>
<% end -%>
<% if node[:platform] != "windows" -%>
#!/bin/bash
<% end -%>
<% @params["recipes"].each do |recipe| -%>
rs_run_recipe -n <%= recipe["recipe"] %> <%= if recipe["json_file"] then "-j #{recipe["json_file"]}" end %>
<% end -%>
Check for nil rather than empty string
Check for nil rather than empty string
