summaryrefslogtreecommitdiff
path: root/libui.sh
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-03-25 13:50:47 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-03-25 13:50:47 +0100
commit5dd2b063e4ce1758d38020fa80210ac79451c0ed (patch)
tree2b54e848f3736e86f43f453218b1a1ab99b030b4 /libui.sh
parent1be387ea87fed465b8f04e5500700a190bdb4d9a (diff)
error out when asked to use a UI type which cannot be found
Diffstat (limited to 'libui.sh')
-rw-r--r--libui.sh1
1 files changed, 1 insertions, 0 deletions
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