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 ""