-
Notifications
You must be signed in to change notification settings - Fork 43
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
Conversation
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 |
There was a problem hiding this comment.
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")) { |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Co-authored-by: Guy Pritchard MSFT <111762521+lovelysandwich@users.noreply.github.com>
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.