set term to dummy for cron, update path

This commit is contained in:
Asif Bacchus 2020-08-13 23:48:52 -06:00
parent 3f08853826
commit 5b1678c6ae
1 changed files with 7 additions and 1 deletions

View File

@ -5,6 +5,12 @@
#######
### set environment variables
if [ -z "$TERM" ]; then
export TERM=dumb;
fi
export PATH=$PATH:/usr/local/bin
### text formatting presents
norm=$(tput sgr0)
err=$(tput bold)$(tput setaf 1)
@ -65,7 +71,7 @@ cleanup () {
else
printf "${cyan}[%s] -- [INFO] 503 error page removed --${norm}\n" \
"$(stamp)" >> "$logFile"
fi
fi
fi
# remove EML temporary directory
if ! rm -rf "$exportDir" 2>>"$logFile"; then