diff options
Diffstat (limited to 'src/task_ar.cc')
-rw-r--r-- | src/task_ar.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/task_ar.cc b/src/task_ar.cc index 512815f..3b45cc2 100644 --- a/src/task_ar.cc +++ b/src/task_ar.cc @@ -121,7 +121,13 @@ int TaskAR::runInner() break; } - return execute(settings, tool, args, c.env); + auto res = execute(settings, tool, args, c.env); + if(res != 0) + { + std::filesystem::remove(targetFile()); + } + + return res; } int TaskAR::clean() |