summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-05-08 00:20:21 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2010-05-08 00:20:21 +0200
commit801a8144e3c8451294e043656526d4c3e95ff725 (patch)
treece914fa2f52adb93ae35f095b4a3ea462c7868a1
parentf3807a368113386d5c204b7cd67809acfb52e04b (diff)
make init function name compatible with posix sh
-rw-r--r--libui.sh2
1 files changed, 1 insertions, 1 deletions
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"