capifony icon indicating copy to clipboard operation
capifony copied to clipboard

Work around ruby / bash newline backslash issue

Open elmariachi111 opened this issue 9 years ago • 0 comments

When interpolating strings like so:

file_content = "parameters:\n    assets_version: #{assets_version}"
run "echo '#{file_content}' | #{try_sudo} tee #{file_path}"

I end up with a file on my server looking like:

parameters:\
    assets_version: o2aepl

This println "fix" is helping

elmariachi111 avatar Feb 11 '16 16:02 elmariachi111