Update displayDialogBox()
This commit is contained in:
parent
ac3d75f81e
commit
5b674bcaf7
|
@ -3,21 +3,15 @@
|
||||||
displayDialogBox() {
|
displayDialogBox() {
|
||||||
case $dialogBox in
|
case $dialogBox in
|
||||||
whiptail)
|
whiptail)
|
||||||
if [ "$1" = "--menu" ]; then
|
if [[ "$1" == "--checklist" || "$1" == "--menu" ]]; then
|
||||||
useWhiptailListOrMenu "$@"
|
|
||||||
elif [ "$1" = "--checklist" ]; then
|
|
||||||
useWhiptailListOrMenu "$@"
|
useWhiptailListOrMenu "$@"
|
||||||
else
|
else
|
||||||
if [ "$1" = "--infobox" ] && tty | grep -q "/dev/pts"; then
|
[ "$1" = "--infobox" ] && tty | grep -q "/dev/pts" && local TERM=ansi
|
||||||
local TERM=ansi
|
|
||||||
fi
|
|
||||||
useWhiptail "$@"
|
useWhiptail "$@"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
dialog)
|
dialog)
|
||||||
if [ "$1" = "--menu" ]; then
|
if [[ "$1" == "--checklist" || "$1" == "--menu" ]]; then
|
||||||
useDialogListOrMenu "$@"
|
|
||||||
elif [ "$1" = "--checklist" ]; then
|
|
||||||
useDialogListOrMenu "$@"
|
useDialogListOrMenu "$@"
|
||||||
else
|
else
|
||||||
useDialog "$@"
|
useDialog "$@"
|
||||||
|
|
Loading…
Reference in New Issue