How to pass multiline value to drush 8 – altering robots.txt Drupal 8 module
I am trying to override the output of Robots.txt Drupal 8 module, so that it provides different values for production and UAT website. In particular, I need it to output two lines like
1 2 3 4 |
User-agent: * Disallow: / |
I am using drush 8 in your platform and it looks like
1 2 3 |
drush config-set |
should do the job. However it ignores the “\n” character and imports it as is, instead of converting into the new line character as per Symphony specifications. Looks like drush does it’s own processing and string escaping.
This is the full command that I am trying to execute via drush:
1 2 3 |
drush @site.uat config-set robotstxt.settings content "User-agent: *\nDisallow: /" -y |
However, the output provided by the Robots.txt module includes the “\n” instead of new line.