]> git.ipfire.org Git - people/ms/nightly-builds.git/blobdiff - build.sh
build.sh: Send email before syncing
[people/ms/nightly-builds.git] / build.sh
index 81b54cddff4dc2e79730b75fcebd38a27e6ce859..d7f97c1a9b30f4fcf7b1cad7a25e52d52b81e487 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -166,14 +166,14 @@ build() {
        fi
        mv -v log/ "${build}"
 
-       # Upload the result
-       sync
+       # Cleanup the build environment
+       ./make.sh --target="${target}" clean
 
        # Send an email notification
        send_email "${status}" "${target}" "${branch}" "${commit_new}" "${build}"
 
-       # Cleanup the build environment
-       ./make.sh --target="${target}" clean
+       # Upload the result
+       sync
 
        popd
 }