set term to dummy for cron, update path
This commit is contained in:
parent
3f08853826
commit
5b1678c6ae
@ -5,6 +5,12 @@
|
|||||||
#######
|
#######
|
||||||
|
|
||||||
|
|
||||||
|
### set environment variables
|
||||||
|
if [ -z "$TERM" ]; then
|
||||||
|
export TERM=dumb;
|
||||||
|
fi
|
||||||
|
export PATH=$PATH:/usr/local/bin
|
||||||
|
|
||||||
### text formatting presents
|
### text formatting presents
|
||||||
norm=$(tput sgr0)
|
norm=$(tput sgr0)
|
||||||
err=$(tput bold)$(tput setaf 1)
|
err=$(tput bold)$(tput setaf 1)
|
||||||
@ -65,7 +71,7 @@ cleanup () {
|
|||||||
else
|
else
|
||||||
printf "${cyan}[%s] -- [INFO] 503 error page removed --${norm}\n" \
|
printf "${cyan}[%s] -- [INFO] 503 error page removed --${norm}\n" \
|
||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# remove EML temporary directory
|
# remove EML temporary directory
|
||||||
if ! rm -rf "$exportDir" 2>>"$logFile"; then
|
if ! rm -rf "$exportDir" 2>>"$logFile"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user