summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'backend/backend.php')
-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');