summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote')
-rwxr-xr-xremote/setup_target6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote/setup_target b/remote/setup_target
index a7e25406..e004d8bd 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -241,6 +241,9 @@ clean_modules() {
[ -d $TARGET_DIR ] || perror "Given target directory does not exist: $TARGET_DIR"
if [ "x$2" = "x" -o "x$2" = "xall" ]; then
+ if [ -e ${ROOT_DIR}/logs/${TARGET}.size ]; then
+ rm "${ROOT_DIR}/logs/${TARGET}.size" || perror "Could not delete logs/${TARGET}.size"
+ fi
if [ -d ${TARGET_BUILD_DIR} ]; then
pinfo "Cleaning '${TARGET_BUILD_DIR}'" \
&& rm -rf "${TARGET_BUILD_DIR}"/* \
@@ -277,7 +280,4 @@ clean_module() {
if [ -e ${MODULE_DIR}/list_binaries_and_files ]; then
rm "${MODULE_DIR}/list_binaries_and_files" || perror "Could not delete list_binaries_and_files"
fi
- if [ -e ${ROOT_DIR}/logs/${TARGET}.size ]; then
- rm "${ROOT_DIR}/logs/${TARGET}.size" || perror "Could not delete logs/${TARGET}.size"
- fi
}