We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c96a5a commit ac9c980Copy full SHA for ac9c980
1 file changed
src/Classes/SelfUpdater.php
@@ -154,6 +154,7 @@ private function backup(MmlcVersionInfo $mmlcVersionInfo): bool
154
}
155
156
$exclude = [
157
+ '/ModifiedModuleLoaderClient',
158
'/Archives',
159
'/Modules',
160
'/backup',
@@ -212,6 +213,11 @@ private function install(MmlcVersionInfo $mmlcVersionInfo): void
212
213
$srcPath = $this->appRoot . '/ModifiedModuleLoaderClient';
214
$destPath = $this->appRoot;
215
216
+ if (!is_dir($srcPath)) {
217
+ $this->showError("Can not install update because, can not find: <br>\n $srcPath");
218
+ return;
219
+ }
220
+
221
$files = FileHelper::scanDir($srcPath, FileHelper::FILES_AND_DIRS, true);
222
FileHelper::moveFilesTo($files, $srcPath, $destPath);
223
0 commit comments