Skip to content

Correct parameters for copy file #7

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

Merged
merged 3 commits into from
Mar 21, 2023
Merged

Correct parameters for copy file #7

merged 3 commits into from
Mar 21, 2023

Conversation

Nepomuceno
Copy link
Member

Description

Correct the parameters file so we can copyu the destination files.

License

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

Write-InformationColored "Copying ALZ-Bicep module to $alzEnvironmentDestinationInternalCode" -ForegroundColor Green -InformationAction Continue
Copy-ALZParametersFile -alzEnvironmentDestination $alzEnvironmentDestination -upstreamReleaseDirectory $(Join-Path $alzEnvironmentDestinationInternalCode $bicepConfig.version) -configFiles $bicepConfig.config_files | Out-String | Write-Verbose
Copy link
Contributor

@lovelysandwich lovelysandwich Mar 21, 2023

Choose a reason for hiding this comment

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

Write-Verbose - is absolute genius.

return $true
}
$gitInit = Read-Host "Initialize the directory $alzEnvironmentDestination as a git repository? (y/n)"
if (($gitInit -eq "y" -or $gitInit -eq "Y") -and $PSCmdlet.ShouldProcess("gitrepository", "initialize")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This got me thinking about Powershell case sensitivity:
https://stackoverflow.com/questions/64127557/powershell-if-eq-and-ieq-are-case-in-sensitive-and-serves-same-purpose-or-ieq

Apparently we can use -ieq, but the answer here says that it's just an alias for -eq and is case insensitive anyway.

Copy link
Contributor

@lovelysandwich lovelysandwich left a comment

Choose a reason for hiding this comment

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

Nice work! Some completely ignorable rambling comments attached.

Nepomuceno and others added 2 commits March 21, 2023 11:44
Co-authored-by: Guy Pritchard MSFT <111762521+lovelysandwich@users.noreply.github.com>
@Nepomuceno Nepomuceno merged commit c19fc5f into main Mar 21, 2023
@Nepomuceno Nepomuceno deleted the config_file branch March 21, 2023 14:52
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.

2 participants