removed static stamp var and replaced with dynamic function
This commit is contained in:
parent
1755144a85
commit
9e704bd440
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user