From a14d0ba4a579343a159dc61a4991af030c0291d7 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 28 Oct 2018 05:10:58 -0600 Subject: [PATCH] removed fixed 'stamp' var and replaced it with a function so it updates --- root/scripts/backup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/root/scripts/backup.sh b/root/scripts/backup.sh index 19974ef..33074dd 100644 --- a/root/scripts/backup.sh +++ b/root/scripts/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 ### @@ -101,6 +100,10 @@ function scriptHelp { exit 1 } +function stamp { + echo `date +%F" "%T` +} + ### quit -- exit the script after logging any errors, warnings, etc. function quit { # list generated warnings, if any