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

Joel Grunbaum
2020-09-20 ac333faecc1cced5c465f57aa1070f981ac19f3e
Modified email message
1 files modified
7 ■■■■ changed files
main.sh 7 ●●●● patch | view | raw | blame | history
main.sh
@@ -88,6 +88,7 @@
    if [ $UPDATE == "Y" ]; then
        sudo pacman -Syu --noconfirm
    fi
    #update every package currently stored
    for d in $(find $BUILDDIR -maxdepth 1 -mindepth 1 -type d)
    do
@@ -170,7 +171,11 @@
        if [ "$ERRORS" != "" ]; then
            echo "Errors in packages $ERRORS"
            if [ "$EMAIL" != "" ]; then
                printf "Build for $(date)\nErrors found in $ERRORS\nPlease address these soon" | sendmail $EMAIL
                echo "To: $EMAIL
                     Subject: Build errors
                     There were build errors for the build at $(date), please address them soon
                     The errors were: $ERRORS" | sendmail -t
            fi
        else
            echo "All packages built successfully"