Updated formatting and changed op colour

This commit is contained in:
Asif Bacchus 2018-09-30 21:54:27 -06:00
parent caf2f6feb0
commit 2e1a3d7bde

View File

@ -9,7 +9,7 @@ err="\e[1;31m"
warn="\e[1;93m" warn="\e[1;93m"
ok="\e[32m" ok="\e[32m"
lit="\e[93m" lit="\e[93m"
op="\e[35m" op="\e[39m"
info="\e[96m" info="\e[96m"
stamp="[`date +%Y-%m-%d` `date +%H:%M:%S`]" stamp="[`date +%Y-%m-%d` `date +%H:%M:%S`]"
@ -36,7 +36,7 @@ function quit {
fi fi
if [ -z "$1" ]; then if [ -z "$1" ]; then
# exit cleanly # exit cleanly
echo -e "${bold}${op}${stamp} -- ${scriptName} completed" \ echo -e "\e[1;35m${stamp} -- ${scriptName} completed" \
"--${normal}" >> "$logFile" "--${normal}" >> "$logFile"
exit 0 exit 0
else else
@ -216,7 +216,7 @@ fi
### Log start of script operations ### Log start of script operations
echo -e "${bold}${op}${stamp}-- Start $scriptName execution ---${normal}" \ echo -e "\e[1;35m${stamp}-- Start $scriptName execution ---${normal}" \
>> "$logFile" >> "$logFile"