From 8914c7e64aadda8fdbae2c95763c5799ff145a09 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 19 Sep 2018 16:00:38 -0600 Subject: [PATCH] Log script operations start --- backup.log | 5 +---- backup.sh | 5 +++++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/backup.log b/backup.log index 32e9a9f..117a5ce 100644 --- a/backup.log +++ b/backup.log @@ -1,4 +1 @@ -[2018-09-19 15:51:58] -- [ERROR] Script exited with code 1 -- -Missing or invalid parameters on script invocation. -[2018-09-19 15:52:19] -- [ERROR] Script exited with code 1 -- -Missing or invalid parameters on script invocation. +[2018-09-19 16:00:05]-- Start backup.sh execution --- diff --git a/backup.sh b/backup.sh index c139a68..cab6563 100755 --- a/backup.sh +++ b/backup.sh @@ -82,6 +82,11 @@ while getopts ':l:' PARAMS; do done +### Log start of script operations +echo -e "${bold}${stamp}-- Start $scriptName execution ---" >> "$logFile" + + + # This code should not be executed since the 'quit' function should terminate # this script. Therefore, exit with code 99 if we get to this point.