From f0ad560831b19752b80edd89611ebc21ed722230 Mon Sep 17 00:00:00 2001 From: Julian Xhokaxhiu Date: Mon, 23 Jan 2017 23:06:38 +0100 Subject: [PATCH] Fix the cleaning logic of the out directory --- src/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index 17787cc..f3c5dd8 100644 --- a/src/build.sh +++ b/src/build.sh @@ -39,7 +39,9 @@ if ! [ -z "$DEVICE_LIST" ]; then # If requested, clean the OUT dir in order to avoid clutter if [ "$CLEAN_OUTDIR" = true ]; then echo ">> [$(date)] Cleaning '$ZIP_DIR'" - rm -Rf "$ZIP_DIR/*" + cd $ZIP_DIR + rm * + cd $SRC_DIR fi # Prepare the environment