Skip to content

Commit

Permalink
example fix
Browse files Browse the repository at this point in the history
  • Loading branch information
buidav committed Oct 1, 2024
1 parent 5c01b1e commit 0a1e837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PowerShell/ScubaGear/Modules/Support/Support.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ function Initialize-SCuBA {
# Import module magic may be helping by:
# * restricting the import so only that only function is exported
# * imported function takes precedence over imported modules w/ function
Import-Module $ModulePath -Function Initialize-Scuba
# Import-Module $ModulePath -Function Initialize-Scuba
$ModuleParentDir = Split-Path -Path (Get-Module ScubaGear).Path -Parent
try {
($RequiredModulesPath = Join-Path -Path $ModuleParentDir -ChildPath 'RequiredVersions.ps1') *> $null
($RequiredModulesPath = Join-Path -Path $ModulePath -ChildPath 'RequiredVersions.ps1') *> $null
. $RequiredModulesPath
}
catch {
Expand Down
3 changes: 2 additions & 1 deletion PowerShell/ScubaGear/ScubaGear.psm1
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Import-Module (Join-Path -Path $PSScriptRoot -ChildPath './Modules/Orchestrator.psm1')
Import-Module (Join-Path -Path $PSScriptRoot -ChildPath './Modules/Connection/Connection.psm1')
Import-Module (Join-Path -Path $PSScriptRoot -ChildPath './Modules/Connection/Connection.psm1')
Import-Module (Join-Path -Path $PSScriptRoot -ChildPath './Modules/Support/Support.psm1')

0 comments on commit 0a1e837

Please sign in to comment.