Log script operations start
This commit is contained in:
parent
74a514feb8
commit
8914c7e64a
@ -1,4 +1 @@
|
|||||||
[1m[31m[2018-09-19 15:51:58] -- [ERROR] Script exited with code 1 --[0m
|
[1m[2018-09-19 16:00:05]-- Start backup.sh execution ---
|
||||||
[31mMissing or invalid parameters on script invocation.[0m
|
|
||||||
[1m[31m[2018-09-19 15:52:19] -- [ERROR] Script exited with code 1 --[0m
|
|
||||||
[31mMissing or invalid parameters on script invocation.[0m
|
|
||||||
|
@ -82,6 +82,11 @@ while getopts ':l:' PARAMS; do
|
|||||||
done
|
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 code should not be executed since the 'quit' function should terminate
|
||||||
# this script. Therefore, exit with code 99 if we get to this point.
|
# this script. Therefore, exit with code 99 if we get to this point.
|
||||||
|
Loading…
Reference in New Issue
Block a user