Fix bug of infobox not displaying
This commit is contained in:
parent
16a3ee1a61
commit
adc84b4cce
|
@ -6,6 +6,9 @@ displayDialogBox() {
|
||||||
if [ "$1" = "--menu" ]; then
|
if [ "$1" = "--menu" ]; then
|
||||||
useWhiptailMenu "$@"
|
useWhiptailMenu "$@"
|
||||||
else
|
else
|
||||||
|
if [ "$1" = "--infobox" ] && tty | grep -q "/dev/pts"; then
|
||||||
|
local TERM=ansi
|
||||||
|
fi
|
||||||
useWhiptail "$@"
|
useWhiptail "$@"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue