Skip to content

Commit

Permalink
SupportShouldProcess removed
Browse files Browse the repository at this point in the history
  • Loading branch information
lexiismadd committed Nov 24, 2022
1 parent ca3ca61 commit 93c53a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Standard-CT-Module/CT-PS-Standard.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ trap {
}

function Initialize-Script {
[CmdletBinding(SupportsShouldProcess)]
[CmdletBinding()]
param()
<#
---- STANDARD SCRIPT BLOCK ----
Expand Down Expand Up @@ -140,7 +140,7 @@ function Initialize-Script {
}

Function Write-Log {
[CmdletBinding(SupportsShouldProcess)]
[CmdletBinding()]
Param(
[Parameter(ValueFromPipeline=$True, ValueFromPipelineByPropertyName=$True)]
$output
Expand Down Expand Up @@ -168,7 +168,7 @@ Function Write-APILog {

Function Request-Download {
# Downloads a file using BITS if possible, and if BITS is not available, downloads directly from URL
[CmdletBinding(SupportsShouldProcess)]
[CmdletBinding()]
Param(
[Parameter(ValueFromPipeline=$True, ValueFromPipelineByPropertyName=$True, Mandatory = $true)]
[string[]] $FILE_URL,
Expand Down Expand Up @@ -231,7 +231,7 @@ Function Request-Download {

function Get-CurrentLineNumber {
# Downloads a file using BITS if possible, and if BITS is not available, downloads directly from URL
[CmdletBinding(SupportsShouldProcess)]
[CmdletBinding()]
param()
return "$(Get-ChildItem $MyInvocation.ScriptLineNumber)"
}
Expand Down

0 comments on commit 93c53a9

Please sign in to comment.