Skip to content

Commit

Permalink
Update (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefajers authored May 3, 2022
1 parent 78b7cca commit c7f17cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions/Invoke-AzOpsPush.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,8 @@
}
$WhatIfPreference = $WhatIfPreferenceState

#If addModifySet exists and no deploymentList has been generated, exit with terminating error
if ($addModifySet -and -not $deploymentList) {
#If addModifySet exists and no deploymentList has been generated at the same time as the StatePath root has additional directories, exit with terminating error
if (($addModifySet -and -not $deploymentList) -and (Get-ChildItem -Path $StatePath -Directory)) {
Write-PSFMessage -Level Critical @common -String 'Invoke-AzOpsPush.DeploymentList.NotFound'
exit 1
}
Expand Down

0 comments on commit c7f17cb

Please sign in to comment.