Skip to content

Commit ac9c980

Browse files
committed
fix: SelfUpdater.php
1 parent 4c96a5a commit ac9c980

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Classes/SelfUpdater.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ private function backup(MmlcVersionInfo $mmlcVersionInfo): bool
154154
}
155155

156156
$exclude = [
157+
'/ModifiedModuleLoaderClient',
157158
'/Archives',
158159
'/Modules',
159160
'/backup',
@@ -212,6 +213,11 @@ private function install(MmlcVersionInfo $mmlcVersionInfo): void
212213
$srcPath = $this->appRoot . '/ModifiedModuleLoaderClient';
213214
$destPath = $this->appRoot;
214215

216+
if (!is_dir($srcPath)) {
217+
$this->showError("Can not install update because, can not find: <br>\n $srcPath");
218+
return;
219+
}
220+
215221
$files = FileHelper::scanDir($srcPath, FileHelper::FILES_AND_DIRS, true);
216222
FileHelper::moveFilesTo($files, $srcPath, $destPath);
217223
}

0 commit comments

Comments
 (0)