summaryrefslogtreecommitdiff
path: root/src/core/libs
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/libs')
-rw-r--r--src/core/libs/lib-ui.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index ef6ece7..6b8393f 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -50,6 +50,18 @@ notify ()
}
+# logging of stuff
+log ()
+{
+ if [ "$var_UI_TYPE" = dia ]
+ then
+ echo -e "[LOG] `date +"%Y-%m-%d %H:%M:%S"` $@" >$LOG
+ else
+ echo -e "[LOG] `date +"%Y-%m-%d %H:%M:%S"` $@"
+ fi
+}
+
+
# ask the user a password. return is stored in $PASSWORD or $<TYPE>_PASSWORD
# $1 type (optional. eg 'svn', 'ssh').
ask_password ()