summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/libs/lib-ui.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/libs/lib-ui.sh b/src/core/libs/lib-ui.sh
index 7f6ef2e..cc80616 100644
--- a/src/core/libs/lib-ui.sh
+++ b/src/core/libs/lib-ui.sh
@@ -82,6 +82,22 @@ log ()
}
+debug ()
+{
+ str="[DEBUG] $@"
+ if [ "$DEBUG" = "1" ]
+ then
+ if [ "$var_UI_TYPE" = dia ]
+ then
+ echo -e "$str" > $LOG
+ else
+ echo -e "$str"
+ fi
+ echo -e "$str" >> $LOGFILE
+ fi
+}
+
+
# ask the user a password. return is stored in $PASSWORD or $<TYPE>_PASSWORD
# $1 type (optional. eg 'svn', 'ssh').
ask_password ()