878a0225631959a0c6232b2a0102f3d569447c23
2 # Desc: Display message if opVerbose true
5 # Description: Prints verbose message ("vbm") to stderr if opVerbose is set to "true".
6 # Usage: vbm "DEBUG :verbose message here"
11 # Depends: bash 5.0.3, echo 8.30, date 8.30
13 if [ "$opVerbose" = "true" ]; then
14 functionTime
="$(date --iso-8601=ns)"; # Save current time in nano seconds.
15 echo "[$functionTime]:$0:""$*" 1>&2; # Display argument text.
19 return 0; # Function finished.
20 } # Displays message if opVerbose true
22 #==BEGIN sample code==
23 vbm
"STATUS:This is a status message.";
25 vbm
"STATUS:This is another status message.";
28 # Author: Steven Baltakatei Sandoval