We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Line 522 of PrePostDeploymentScript.Ver2.ps1 contains a ternary if, which is not valid powershell syntax:
$parameterType = $null -ne $templateParameters.$($parameterName).value ? $templateParameters.$($parameterName).value.GetType().Name : $null
Line 521 contains && instead of -and and || instead of -or
&&
-and
||
-or
if ($null -ne $templateParameters.$($parameterName) && ($PreDeployment || $parameterName.EndsWith('runtimeState'))) {
These cause errors when running in a pipeline. Easy fix but needs to be corrected. If I can find time will submit a PR but hope you get to it first.
The text was updated successfully, but these errors were encountered:
my mistake, the ternary operation is valid in powershell 7.0 but not all versions. For example, the one on my release server.
Sorry, something went wrong.
Are you able to update Powershell on your release server?
No branches or pull requests
Line 522 of PrePostDeploymentScript.Ver2.ps1 contains a ternary if, which is not valid powershell syntax:
$parameterType = $null -ne $templateParameters.$($parameterName).value ? $templateParameters.$($parameterName).value.GetType().Name : $null
Line 521 contains
&&
instead of-and
and||
instead of-or
if ($null -ne $templateParameters.$($parameterName) && ($PreDeployment || $parameterName.EndsWith('runtimeState'))) {
These cause errors when running in a pipeline. Easy fix but needs to be corrected. If I can find time will submit a PR but hope you get to it first.
The text was updated successfully, but these errors were encountered: