Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Fix: use path.combine instead of string concat #819

Merged
merged 1 commit into from
Nov 25, 2022

Conversation

steurer
Copy link
Contributor

@steurer steurer commented Sep 29, 2022

If there is no trailing "/" in the output path, the master-template is sometimes erroneously stored besides the output folder due to the use of string.Concat(see attached screenshot).

For all other templates, Path.Combine is used, so the behavior does not depend on a trailing slash.

grafik

@f-alizada f-alizada self-requested a review November 25, 2022 13:35
@f-alizada f-alizada force-pushed the fix/path-combine-for-mastertemplate branch from 33ec477 to ddda826 Compare November 25, 2022 13:55
Copy link
Collaborator

@f-alizada f-alizada left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR!

@f-alizada f-alizada merged commit 5b43144 into Azure:main Nov 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants