Skip to content

Conversation

AdamMcAdamson
Copy link

User-data scripts has a newline before the shebang, causing the resulting script to be invalid.

Golang MIME multipart writer already puts a newline:
https://github.com/golang/go/blob/beaf7f3282c2548267d3c894417cc4ecacc5d575/src/mime/multipart/writer.go#L120

Removed said newline.

Fixes #1164


Enter [N/A] in the box, if an item is not applicable to your change.

Testing

  • Unit tests passed
  • Integration tests passed
  • Unit tests added for new functionality
  • Listed manual checks and their outputs in the comments (example)
  • Link to issue or PR for the integration tests:

Documentation

  • [ N/A] Contacted our doc writer
  • [ N/A] Updated our README

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

User-data scripts has a newline before the shebang, causing the resulting script to be invalid.

Writer already puts a newline:
https://github.com/golang/go/blob/beaf7f3282c2548267d3c894417cc4ecacc5d575/src/mime/multipart/writer.go#L120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant