mirror of
https://github.com/zdharma-continuum/zflai.git
synced 2026-09-10 07:06:16 -04:00
dj: Simpler [[ code
This commit is contained in:
parent
95cb00fb51
commit
7bfaaae5b0
|
|
@ -39,7 +39,7 @@ function .zflai_coproc_error_fetch {
|
|||
local -a __arr
|
||||
repeat 3; do
|
||||
while read -r -t "$__tout" -p __iobuf; do
|
||||
if [[ "$__iobuf" = Error* || "$__iobuf" = ERROR* ]]; then
|
||||
if [[ $__iobuf = (Error*|ERROR*) ]]; then
|
||||
builtin print -r -- "$__label: $__iobuf" >>! "$LOG_FILE"
|
||||
else
|
||||
__outbuf+="$__iobuf$__nl"
|
||||
|
|
|
|||
Loading…
Reference in a new issue