From: Michael Tremer Date: Thu, 30 Apr 2020 12:51:24 +0000 (+0000) Subject: build.sh: Send email before syncing X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8907511a2421c953c2b0f22be46445427cd77056;p=people%2Fms%2Fnightly-builds.git build.sh: Send email before syncing The sync() command deletes everything which is why we do not have a logfile that we can attach to the email. Signed-off-by: Michael Tremer --- diff --git a/build.sh b/build.sh index 81b54cd..d7f97c1 100755 --- 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 }