fix: add FullName for explicit path

This commit is contained in:
Hasan Cem Cerit 2021-11-23 10:36:52 -05:00 committed by Jan De Dobbeleer
parent c5fb63885f
commit 7627a65c66

View file

@ -84,7 +84,7 @@ function Get-PoshCommand {
if ($PSVersionTable.PSEdition -ne "Core" -or $IsWindows) {
$extension = ".exe"
}
return "$((Get-Item $MyInvocation.MyCommand.ScriptBlock.Module.ModuleBase).Parent)/oh-my-posh$extension"
return "$((Get-Item $MyInvocation.MyCommand.ScriptBlock.Module.ModuleBase).Parent.FullName)/oh-my-posh$extension"
}
function Sync-PoshExecutable {