From d92cffb35571e709cf47cc7523e69d1cd82ae554 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 4 Apr 2013 19:22:44 +0200 Subject: small fix --- remote/setup_target | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'remote/setup_target') 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 } -- cgit v1.2.3-55-g7522