rhq_bash.lib | 15 +++++++++++++++
1 file changed, 15 insertions(+)
New commits:
commit dbff94512871fd298f9e9b6cc1a4059bc56d56bf
Author: Stefan Negrea <snegrea(a)redhat.com>
Date: Fri Nov 18 11:49:46 2011 -0600
Make the output a little bit nicer by adding a function execution marker.
diff --git a/rhq_bash.lib b/rhq_bash.lib
index 8f9b3dd..8b1a300 100644
--- a/rhq_bash.lib
+++ b/rhq_bash.lib
@@ -236,3 +236,18 @@ unset_script_debug_mode()
set +x
}
+
+#========================================================================================
+# Description: Print function information (name and parameters).
+#========================================================================================
+print_function_information()
+{
+ function_name=$1
+ shift
+
+ function_parameters=$(printf ", %s " "$@")
+ function_parameters=${function_parameters:1}
+
+ echo "+ $function_name ($function_parameters)"
+}
+
Show replies by date