From: Michael Tremer Date: Tue, 21 Aug 2018 09:20:11 +0000 (+0100) Subject: Cleanup the whole upload directory after a successful upload X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a0fb04f49b1a5ee60eae522939c84e59a5ceb2e;p=people%2Fms%2Fnightly-builds.git Cleanup the whole upload directory after a successful upload Signed-off-by: Michael Tremer --- diff --git a/build.sh b/build.sh index e7494be..f73f97b 100755 --- a/build.sh +++ b/build.sh @@ -104,7 +104,7 @@ build() { # be retried with the next build. If that succeeded, the # build will be removed from disk. if sync; then - rm -rf "${build_path}" + rm -rf "${UPLOAD_DIR}" fi done