mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2021-08-19 d6f41ab69b2bab145f454b5de83bc11ad8de6d20
Added email from variable and message separation from email headers
2 files modified
4 ■■■ changed files
main.sh 3 ●●●● patch | view | raw | blame | history
vars-default.sh 1 ●●●● patch | view | raw | blame | history
main.sh
@@ -340,9 +340,10 @@
function send_email {
    (
    echo "From: build@localhost"
    echo "From: $FROM_EMAIL"
    echo "To: $EMAIL"
    echo "Subject: Build errors"
    echo ""
    echo "There were build errors for the build of $REPONAME at $(date), please address them soon."
    echo "The errors were: $@"
    ) | sendmail -t
vars-default.sh
@@ -6,6 +6,7 @@
export SRCEXT='.src.tar.bz2'
export PACKAGER="John Doe <jd@change.me>"
EMAIL=""
FROM_EMAIL="$(whoami)@$(localhost)"
UPDATE=N
PARALLEL=N
QUIET=N