summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/installer.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index a497f581a5d..7ba4144a4aa 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -92,6 +92,7 @@ class OC_Installer{
$extractDir .= '/' . $info['id'];
if(!file_exists($extractDir)) {
+ OC_Helper::rmdirr($basedir);
throw new \Exception($l->t("Archive does not contain a directory named %s", $info['id']));
}
OC_Helper::copyr($extractDir, $basedir);