Log script operations start

This commit is contained in:
Asif Bacchus 2018-09-19 16:00:38 -06:00
parent 74a514feb8
commit 8914c7e64a
2 changed files with 6 additions and 4 deletions

View File

@ -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 ---

View File

@ -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.