mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-14 04:38:00 -08:00
fix(bash): override pipestatus when BP_PIPESTATUS is greater or equal
This commit is contained in:
parent
0a9ddf1957
commit
f078d13cca
|
@ -47,7 +47,7 @@ function set_poshcontext() {
|
|||
|
||||
function _omp_hook() {
|
||||
local ret=$? pipeStatus=(${PIPESTATUS[@]})
|
||||
if [[ "${#BP_PIPESTATUS[@]}" -gt "${#pipeStatus[@]}" ]]; then
|
||||
if [[ "${#BP_PIPESTATUS[@]}" -ge "${#pipeStatus[@]}" ]]; then
|
||||
pipeStatus=(${BP_PIPESTATUS[@]})
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue