From adc84b4cce0ae49db9ab097e33dd6c5c59588078 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sat, 8 Jan 2022 00:18:10 -0300 Subject: [PATCH] Fix bug of infobox not displaying --- scripts/common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/common.sh b/scripts/common.sh index 8966fbd..af6aec7 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -6,6 +6,9 @@ displayDialogBox() { if [ "$1" = "--menu" ]; then useWhiptailMenu "$@" else + if [ "$1" = "--infobox" ] && tty | grep -q "/dev/pts"; then + local TERM=ansi + fi useWhiptail "$@" fi ;;