You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/PSAppDeployToolkit.Tools/Public/Convert-ADTDeployment.ps1
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -77,15 +77,15 @@ function Convert-ADTDeployment
77
77
{
78
78
$PSCmdlet.ThrowTerminatingError((New-ADTValidateScriptErrorRecord-ParameterName Path -ProvidedValue $_-ExceptionMessage 'The specified path does not exist.'))
$PSCmdlet.ThrowTerminatingError((New-ADTValidateScriptErrorRecord-ParameterName Path -ProvidedValue $_-ExceptionMessage 'The specified file is not a PowerShell script.'))
$PSCmdlet.ThrowTerminatingError((New-ADTValidateScriptErrorRecord-ParameterName Path -ProvidedValue $_-ExceptionMessage 'Deploy-Application.ps1 not found in the specified path.'))
$PSCmdlet.ThrowTerminatingError((New-ADTValidateScriptErrorRecord-ParameterName Path -ProvidedValue $_-ExceptionMessage 'AppDeployToolkit folder not found in the specified path.'))
91
91
}
@@ -139,6 +139,7 @@ function Convert-ADTDeployment
$PSCmdlet.ThrowTerminatingError((New-ADTValidateScriptErrorRecord-ParameterName FilePath -ProvidedValue $_-ExceptionMessage 'The specified file does not exist.'))
if ($FilePath-notmatch'(Deploy-Application\.ps1|Invoke-AppDeployToolkit\.ps1)$')
96
98
{
97
99
Write-Warning-Message "This function is designed to test PSAppDeployToolkit deployment scripts such as Deploy-Application.ps1 or Invoke-AppDeployToolkit.ps1."
0 commit comments