summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-08-07 00:56:38 -0400
committerEudyptula <eitan@mosenkis.net>2009-08-07 00:56:38 -0400
commit688846157870d25d25acd7091d38b031940d448e (patch)
treeb41eadca5c6a91ccbfbf3c6acb474893d40ae489
parentFix module extraction in CD bundlers (diff)
downloadingenue-688846157870d25d25acd7091d38b031940d448e.tar.gz
ingenue-688846157870d25d25acd7091d38b031940d448e.tar.bz2
ingenue-688846157870d25d25acd7091d38b031940d448e.zip
Delete work dir for failed builds also
-rwxr-xr-xbackend/backend.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/backend.php b/backend/backend.php
index 7c5e54b..d5c989e 100755
--- a/backend/backend.php
+++ b/backend/backend.php
@@ -118,12 +118,12 @@ while (true) {
$ext=substr($base, strpos($base, '.'));
rename($file, COMPLETED.'/build-'.$build->id.$ext);
}
- if (!$S['conf']['debug']) {
- shell_exec('rm -rf "'.$workdir.'"');
- }
xhtmlemail('"'.$owner->name.'" <'.$owner->email.'>', null, $S['conf']['title'].' build finished', 'Your build has completed successfully. You can find more information and download the completed image at <a href="'.url("build/$build->id").'">'.url("build/$build->id").'</a>');
}
$build->write();
+ if (!$S['conf']['debug']) {
+ shell_exec('rm -rf "'.$workdir.'"');
+ }
unset($build);
} else {
query('UNLOCK TABLES');