]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
build.sh: Cleanup code for removing the result
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Sep 2015 13:58:57 +0000 (15:58 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Sep 2015 13:58:57 +0000 (15:58 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index f8dd6e556ff63ee0a8b6ebdfeb41c917cc96acef..afed95ca5ef903ec8ebffb4e854f8b52f7ef6509 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -56,7 +56,8 @@ build() {
 
        local target
        for target in ${targets}; do
-               local build="${UPLOAD_DIR}/${branch}/${now}-${commit_new:0:8}/${target}"
+               local build_path="${UPLOAD_DIR}/${branch}/${now}-${commit_new:0:8}"
+               local build="${build_path}/${target}"
 
                # Ready for build
                ./make.sh --target="${target}" clean
@@ -85,7 +86,7 @@ build() {
 
                # Cleanup in the end
                ./make.sh --target="${target}" clean
-               rm -rf "$(dirname "${build}")"
+               rm -rf "${build_path}"
        done
 
        popd