From 8753ba2dccca4da9b885e70bad71cd19c1d1adb1 Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 28 Jul 2026 10:52:53 +0400 Subject: [PATCH] fix warn --- poc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/poc b/poc index 5519e10..6922ba7 100755 --- a/poc +++ b/poc @@ -234,8 +234,7 @@ trap 'on_error $?' ERR trap 'on_exit $?' EXIT trap 'on_pipe' PIPE -# exec 4>/dev/tty -[[ -e /proc/$$/fd/3 ]] && exec 4>&3 3>&- || exec 4>/dev/tty +if [[ -e /proc/$$/fd/3 ]]; then exec 4>&3 3>&-; else exec 4>/dev/tty; fi exec 3>/dev/stderr 2>"$MIAOU_BASH_ERROR" miaou_debug ""