removed static stamp var and replaced with dynamic function

This commit is contained in:
Asif Bacchus 2018-10-28 05:23:43 -06:00
parent 1755144a85
commit 9e704bd440

View File

@ -12,7 +12,6 @@ lit="\e[93m"
op="\e[39m" op="\e[39m"
info="\e[96m" info="\e[96m"
note="\e[95m" note="\e[95m"
stamp="[`date +%Y-%m-%d` `date +%H:%M:%S`]"
### Functions ### ### Functions ###
@ -90,6 +89,11 @@ function scriptHelp {
exit 1 exit 1
} }
### generate dynamic timestamps
function stamp {
echo `date +%F" "%T`
}
### quit -- exit the script after logging any errors, warnings, etc. ### quit -- exit the script after logging any errors, warnings, etc.
function quit { function quit {
# list generated warnings, if any # list generated warnings, if any