Skip to content

Commit

Permalink
Merge pull request #267 from Fryguy/fix_warnings
Browse files Browse the repository at this point in the history
Fix warnings on newer ERB versions
  • Loading branch information
jrafanie authored Oct 30, 2024
2 parents b77d60d + daf6745 commit eacda8e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def cp_template(file, src_dir, dest_dir = "/")
src_path = path_join(src_dir, file)
dest_path = path_join(dest_dir, file.gsub(".erb", ""))
if src_path.to_s.include?(".erb")
File.write(dest_path, ERB.new(File.read(src_path), nil, '-').result(binding))
File.write(dest_path, ERB.new(File.read(src_path), trim_mode: '-').result(binding))
else
FileUtils.cp src_path, dest_path
end
Expand Down

0 comments on commit eacda8e

Please sign in to comment.