fixes to casing, and some basic functions changed to advanced

This commit is contained in:
jhoneill
2019-11-25 23:40:51 +00:00
parent feb493e397
commit 5e87c3f6a7
43 changed files with 118 additions and 133 deletions

View File

@@ -4,7 +4,7 @@
File must not have BOM for GitHub deploy to work.
#>
[CmdletBinding(DefaultParameterSetName = 'Default')]
Param (
param(
# Path to install the module to, if not provided -Scope used.
[Parameter(Mandatory, ParameterSetName = 'ModulePath')]
[ValidateNotNullOrEmpty()]
@@ -106,7 +106,7 @@ function Invoke-MultiLike {
}
}
Try {
try {
Write-Verbose -Message 'Module installation started'
if (!$ModulePath) {
@@ -202,7 +202,7 @@ Try {
Import-Module -Name $ModuleName -Force
Write-Verbose -Message "Module installed"
}
Catch {
catch {
throw ('Failed installing module "{0}". Error: "{1}" in Line {2}' -f $ModuleName, $_, $_.InvocationInfo.ScriptLineNumber)
}
finally {