From 151d911057a9d23af78a443e86cd1e47a9819ec4 Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Fri, 22 Nov 2019 12:08:28 -0800 Subject: [PATCH] Fixed: using wrong variable name for default PowerShell modules install directory. --- Whiskey/Functions/Resolve-WhiskeyPowerShellModule.ps1 | 2 +- Whiskey/Tasks/GetPowerShellModule.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Whiskey/Functions/Resolve-WhiskeyPowerShellModule.ps1 b/Whiskey/Functions/Resolve-WhiskeyPowerShellModule.ps1 index 0e639b91..381ed344 100644 --- a/Whiskey/Functions/Resolve-WhiskeyPowerShellModule.ps1 +++ b/Whiskey/Functions/Resolve-WhiskeyPowerShellModule.ps1 @@ -122,7 +122,7 @@ function Resolve-WhiskeyPowerShellModule } Import-WhiskeyPowerShellModule -Name 'PackageManagement','PowerShellGet' ` - -PSModulesRoot (Join-Path -Path $BuildRoot -ChildPath $psModulesDirectoryName) + -PSModulesRoot (Join-Path -Path $BuildRoot -ChildPath $powershellModulesDirectoryName) Write-WhiskeyDebug -Message ('{0} {1} ->' -f $Name,$Version) if( $Version ) diff --git a/Whiskey/Tasks/GetPowerShellModule.ps1 b/Whiskey/Tasks/GetPowerShellModule.ps1 index 96eb3d16..7c9a390b 100644 --- a/Whiskey/Tasks/GetPowerShellModule.ps1 +++ b/Whiskey/Tasks/GetPowerShellModule.ps1 @@ -44,7 +44,7 @@ function Get-WhiskeyPowerShellModule return } - $destination = Join-Path -Path $TaskContext.BuildRoot -ChildPath $psModulesDirectoryName + $destination = Join-Path -Path $TaskContext.BuildRoot -ChildPath $powershellModulesDirectoryName if( $Path ) { $destination = $Path