fix problem with #2756

This commit is contained in:
David Refoua 2022-10-16 00:02:38 +03:30 committed by GitHub
parent 67e2bf1a73
commit 8d4afb0570
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
vendor/profile.ps1 vendored
View File

@ -18,9 +18,9 @@ if ($ENV:CMDER_USER_CONFIG) {
# We do this for Powershell as Admin Sessions because CMDER_ROOT is not being set.
if ($null -eq $ENV:CMDER_ROOT) {
if ($ENV:ConEmuDir) {
$ENV:CMDER_ROOT = Resolve-Path $ENV:ConEmuDir + "\..\.."
$ENV:CMDER_ROOT = Resolve-Path($ENV:ConEmuDir + "\..\..")
} else {
$ENV:CMDER_ROOT = Resolve-Path $PSScriptRoot + "\.."
$ENV:CMDER_ROOT = Resolve-Path($PSScriptRoot + "\..")
}
}