From 5dd2b063e4ce1758d38020fa80210ac79451c0ed Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Thu, 25 Mar 2010 13:50:47 +0100 Subject: error out when asked to use a UI type which cannot be found --- libui.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/libui.sh b/libui.sh index 502af0d..a85b025 100644 --- a/libui.sh +++ b/libui.sh @@ -14,6 +14,7 @@ libui-sh-init () { LIBUI_UI=${1:-cli} + [ "$LIBUI_UI" == 'dialog' ] && ! which dialog &>/dev/null && die_error "Required dependency dialog not found" LIBUI_TMP_DIR=/tmp if [ -n "$2" ]; then LIBUI_TMP_DIR=$2 -- cgit v1.2.2