chore(unitproc/bktemp-vbm):Minor comment about dependencies
[BK-2020-03.git] / unitproc / bktemp-vbm
... / ...
CommitLineData
1#!/bin/bash
2# Desc: Display message if optionVerbose true
3
4vbm() {
5 # Description: Prints verbose message ("vbm") to stderr if optionVerbose is set to "true".
6 # Usage: vbm "DEBUG:verbose message here"
7 # Version 0.1.1
8 # Input: arg1: string
9 # vars: optionVerbose
10 # Output: stderr
11 # Depends: echo 8, date 8
12
13 if [ "$optionVerbose" = "true" ]; then
14 functionTime=$(date --iso-8601=ns); # Save current time in nano seconds.
15 echo "[$functionTime] ""$*" 1>&2; # Display argument text.
16 fi
17
18 # End function
19 return 0; # Function finished.
20} # Displays message if optionVerbose true
21
22# Author: Steven Baltakatei Sandoval
23# License: GPLv3+