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 "Distance Distance" when using setup.ps1 #1

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

Conversation

trigger-segfault
Copy link

@trigger-segfault trigger-segfault commented Jul 12, 2022

In setup.ps1, the replace-all for "Mod Template" -> $Title replaces instances where "Distance Mod Template" is the original text. $Title is already transformed into "Distance $InputName" before assignment. So in those instances, the output text is "Distance $Title" or "Distance Distance $InputName".

This PR fixes two instances where "Distance Mod Template" appears and replaces them with "Mod Template".

Changes have been tested by following the standard protocol for creating a repo from the modified template, to creating a workflow release, to testing the release in Distance.

* In setup.ps1, the replace-all for "Mod Template" -> $Title replaces instances where "Distance Mod Template" is the original text.
* $Title is already transformed into "Distance $InputName" before assignment.
* So in those instances, the output text is "Distance $Title" or "Distance Distance $InputName".
* The two files with "Distance Mod Template" are `./env` and `Mod.Template/Mod.Template.targets`.
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