Public/Source.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 |
function Source { [CmdletBinding()] param( [parameter( Mandatory = $true)] [string]$Name ) if (Test-Path -Path $Name){ $Script:ThisPackerInfo.Source = $Name } else { throw "Source: $Name - not found!" } } |