diff --git a/pilerBackup/pilerbackup.sh b/pilerBackup/pilerbackup.sh index 11bf132..ef965a4 100755 --- a/pilerBackup/pilerbackup.sh +++ b/pilerBackup/pilerbackup.sh @@ -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