mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-14 20:58:12 -08:00
fix(pwsh): fixed bad error code passing to Set-PoshContext
This commit is contained in:
parent
5a6e98946a
commit
f38998ef18
|
@ -387,8 +387,6 @@ Example:
|
||||||
}
|
}
|
||||||
catch {}
|
catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
Set-PoshContext $script:ErrorCode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Update-PoshErrorCode {
|
function Update-PoshErrorCode {
|
||||||
|
@ -446,6 +444,8 @@ Example:
|
||||||
Update-PoshErrorCode
|
Update-PoshErrorCode
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Set-PoshContext $script:ErrorCode
|
||||||
|
|
||||||
$cleanPSWD = Get-CleanPSWD
|
$cleanPSWD = Get-CleanPSWD
|
||||||
$stackCount = global:Get-PoshStackCount
|
$stackCount = global:Get-PoshStackCount
|
||||||
$terminalWidth = Get-TerminalWidth
|
$terminalWidth = Get-TerminalWidth
|
||||||
|
|
Loading…
Reference in a new issue