From c42b9259624dc3afcbb8bb4a442ba58fc9a1b9a8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 28 Sep 2015 15:58:57 +0200 Subject: [PATCH] build.sh: Cleanup code for removing the result Signed-off-by: Michael Tremer --- build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index f8dd6e5..afed95c 100755 --- 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 -- 2.47.3