diff options
author | Michael Neves | 2013-04-04 19:22:44 +0200 |
---|---|---|
committer | sr | 2013-04-12 19:11:41 +0200 |
commit | d92cffb35571e709cf47cc7523e69d1cd82ae554 (patch) | |
tree | b63915e394fc1ba76c5ac05e9210d2fafa06090f /remote/setup_target | |
parent | kdmrc uncomment scripts again (diff) | |
download | tm-scripts-d92cffb35571e709cf47cc7523e69d1cd82ae554.tar.gz tm-scripts-d92cffb35571e709cf47cc7523e69d1cd82ae554.tar.xz tm-scripts-d92cffb35571e709cf47cc7523e69d1cd82ae554.zip |
small fix
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-x | remote/setup_target | 6 |
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 } |