From 801a8144e3c8451294e043656526d4c3e95ff725 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 8 May 2010 00:20:21 +0200 Subject: make init function name compatible with posix sh --- libui.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libui.sh b/libui.sh index c81ba38..0b5ae6a 100644 --- a/libui.sh +++ b/libui.sh @@ -11,7 +11,7 @@ # $3 logfile (or string of logfiles, separated by whitespace) (leave empty to disable logging) # $4 debug categories (leave empty to disable debugging) (an array of categories you will use in debug calls. useful when grepping logfiles) # this library uses the UI debug category internally, you don't need to specify it. we add it automatically -libui-sh-init () +libui_sh_init () { LIBUI_UI=${1:-cli} [ "$LIBUI_UI" == 'dialog' ] && ! which dialog &>/dev/null && die_error "Required dependency dialog not found" -- cgit v1.2.2