From 9e704bd440202736c40fa73e14e28bba5973c930 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 28 Oct 2018 05:23:43 -0600 Subject: [PATCH] removed static stamp var and replaced with dynamic function --- root/NCscripts/backup.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/root/NCscripts/backup.sh b/root/NCscripts/backup.sh index 1a76ca1..edc4c77 100755 --- a/root/NCscripts/backup.sh +++ b/root/NCscripts/backup.sh @@ -12,7 +12,6 @@ lit="\e[93m" op="\e[39m" info="\e[96m" note="\e[95m" -stamp="[`date +%Y-%m-%d` `date +%H:%M:%S`]" ### Functions ### @@ -90,6 +89,11 @@ function scriptHelp { exit 1 } +### generate dynamic timestamps +function stamp { + echo `date +%F" "%T` +} + ### quit -- exit the script after logging any errors, warnings, etc. function quit { # list generated warnings, if any