projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(.gitignore):Add ignore list
[BK-2020-03.git]
/
unitproc
/
bktemp-vbm
diff --git
a/unitproc/bktemp-vbm
b/unitproc/bktemp-vbm
index 9698fea8fadfa5ff5ebdd0f3fd412837a0b1efb2..8fa7c1cac2c525f9c7742727c7ae6b762e31c034 100644
(file)
--- a/
unitproc/bktemp-vbm
+++ b/
unitproc/bktemp-vbm
@@
-3,8
+3,8
@@
vbm() {
# Description: Prints verbose message ("vbm") to stderr if optionVerbose is set to "true".
vbm() {
# Description: Prints verbose message ("vbm") to stderr if optionVerbose is set to "true".
- # Usage: vbm "DEBUG:verbose message here"
- # Version 0.1.
2
+ # Usage: vbm "DEBUG
:verbose message here"
+ # Version 0.1.
3
# Input: arg1: string
# vars: optionVerbose
# Output: stderr
# Input: arg1: string
# vars: optionVerbose
# Output: stderr
@@
-12,12
+12,18
@@
vbm() {
if [ "$optionVerbose" = "true" ]; then
functionTime=$(date --iso-8601=ns); # Save current time in nano seconds.
if [ "$optionVerbose" = "true" ]; then
functionTime=$(date --iso-8601=ns); # Save current time in nano seconds.
- echo "[$functionTime]
""$*" 1>&2; # Display argument text.
+ echo "[$functionTime]
:$0:
""$*" 1>&2; # Display argument text.
fi
# End function
return 0; # Function finished.
} # Displays message if optionVerbose true
fi
# End function
return 0; # Function finished.
} # Displays message if optionVerbose true
+#==BEGIN sample code==
+vbm "STATUS:This is a status message.";
+optionVerbose="true";
+vbm "STATUS:This is another status message.";
+#==END sample code==
+
# Author: Steven Baltakatei Sandoval
# License: GPLv3+
# Author: Steven Baltakatei Sandoval
# License: GPLv3+