diff options
author | Eudyptula <eitan@mosenkis.net> | 2009-08-07 00:56:38 -0400 |
---|---|---|
committer | Eudyptula <eitan@mosenkis.net> | 2009-08-07 00:56:38 -0400 |
commit | 688846157870d25d25acd7091d38b031940d448e (patch) | |
tree | b41eadca5c6a91ccbfbf3c6acb474893d40ae489 /backend | |
parent | Fix module extraction in CD bundlers (diff) | |
download | ingenue-688846157870d25d25acd7091d38b031940d448e.tar.gz ingenue-688846157870d25d25acd7091d38b031940d448e.tar.bz2 ingenue-688846157870d25d25acd7091d38b031940d448e.zip |
Delete work dir for failed builds also
Diffstat (limited to 'backend')
-rwxr-xr-x | backend/backend.php | 6 |
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'); |