Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix user-data shebang newline issue #1168

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from

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