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
$strCmdletNameForScriptFileInfoAction, $strVerbForShouldProcessMessage = if (Test-Path $oCfg.strPathToScriptFile) {
## script file already exists, so update it
"Update-ScriptFileInfo", "Update"
## if -Force was specified, use it
if ($Force.IsPresent) {$hshScriptInfoParams["Force"] = $true}
} else {
## else, will create anew
"New-ScriptFileInfo", "Create"
}
## do the actual module manifest creation/update
if ($PSCmdlet.ShouldProcess($hshScriptInfoParams["Path"], "$strVerbForShouldProcessMessage Script Information")) {
## update the existing ScriptInfo in a script file, or create anew (so, would create a new file with just the ScriptInfo info in it, and we would add the actual script contents thereafter)