]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
Cleanup the whole upload directory after a successful upload
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Aug 2018 09:20:11 +0000 (10:20 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 21 Aug 2018 09:20:11 +0000 (10:20 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index e7494bef94c28f792c61e1f0e16ddc9acb31a130..f73f97b436d9b30a640351d87ba1516268d4e86f 100755 (executable)
--- 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