File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,4 @@ $MyModule = $MyInvocation.MyCommand.ScriptBlock.Module
1111$aliasList +=
1212 [GetExports (" Alias" )]$MyModule
1313
14- Export-ModuleMember - Function * - Alias $aliasNames
14+ Export-ModuleMember - Function * - Alias $aliasList
Original file line number Diff line number Diff line change 11foreach ($file in (Get-ChildItem - Path " $psScriptRoot " - Filter " *-*" - Recurse)) {
22 if ($file.Extension -ne ' .ps1' ) { continue } # Skip if the extension is not .ps1
3- if ($file.Name -match ' \.[^\.]\.ps1$' ) { continue } # Skip if the file is an unrelated file.
3+ if ($file.Name -match ' \.[^\.]\.ps1$' ) { continue } # Skip if the file is an unrelated file
44 . $file.FullName
55}
66
@@ -46,4 +46,4 @@ $aliasList +=
4646 })
4747
4848
49- Export-ModuleMember - Function * - Alias $aliasNames
49+ Export-ModuleMember - Function * - Alias $aliasList
You can’t perform that action at this time.
0 commit comments