summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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