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

(#141) Ensure the bootstrap script is written as-is #161

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vexx32
Copy link
Member

@vexx32 vexx32 commented Sep 25, 2024

Description Of Changes

  • Ensure we write the bootstrap script to disk as-is, without accidentally appending a newline

Motivation and Context

Ensure we don't append newlines by accident when saving the bootstrapping script.

Testing

Testing this is non-trivial, which is why this PR remains in draft for now; Ansible by default runs everything with an execution policy of Unrestricted, so I'm not sure how to force the check as seen in the linked issue.

Operating Systems Testing

Win10

Change Types Made

  • Bug fix (non-breaking change).
  • Feature / Enhancement (non-breaking change).
  • Breaking change (fix or feature that could cause existing functionality to change).
  • Documentation changes.
  • PowerShell code changes.

Change Checklist

  • Requires a change to the documentation.
  • Documentation has been updated.
  • Tests to cover my changes, have been added.
  • All new and existing tests passed?
  • PowerShell code changes: PowerShell v3 compatibility checked?

Related Issue

Fixes #141 (hopefully) 😁

Set-Content can cause a trailing newline to be added,
which will break the signature if the script is signed.
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.

Cannot install chocolatey - chocolateyInstall.ps1 is not digitally signed
1 participant