Skip to content

Commit e3c2e5d

Browse files
committed
Merge branch 'fix/keepass-plugin-keeautoexec-private-vars' [AU keepass-plugin-keeautoexec:2.6]
* fix/keepass-plugin-keeautoexec-private-vars: [AU keepass-plugin-keeautoexec:2.6] (keepass-plugin-keeautoexec) Remove private Choco vars
2 parents 3d76f5e + c1c1eac commit e3c2e5d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

automatic/keepass-plugin-keeautoexec/tools/chocolateyInstall.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ if ([array]$key = Get-UninstallRegistryKey -SoftwareName $packageSearch) {
1111
}
1212

1313
if ([string]::IsNullOrEmpty($installPath)) {
14-
Write-Verbose "Searching '$env:ChocolateyBinRoot' for portable install..."
15-
$portPath = Join-Path -Path $env:ChocolateyBinRoot -ChildPath "keepass"
14+
$portableInstallPath = Get-ToolsLocation
15+
Write-Verbose "Searching '$($portableInstallPath)' for portable install..."
16+
$portPath = Join-Path -Path $portableInstallPath -ChildPath "keepass"
1617
$installPath = Get-ChildItem -Directory "$portPath*" -ErrorAction SilentlyContinue
1718
}
1819

0 commit comments

Comments
 (0)