about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--redo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/redo.c b/redo.c
index 2b6a406..9d543db 100644
--- a/redo.c
+++ b/redo.c
@@ -682,6 +682,8 @@ redo_ifchange(int targetc, char *targetv[])
 			if (stat(job->temp_target, &st) == 0 &&
 			    st.st_size > 0) {
 				rename(job->temp_target, target);
+			} else {
+				remove(job->temp_target);
 			}
 		}