Merge pull request #5254 from 4bdullatif/master

Check the operating system when deleting the "public/installer" folder
This commit is contained in:
Glenn Hermans 2021-10-19 15:23:44 +02:00 committed by GitHub
commit 864d1c3143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -75,7 +75,11 @@ class Install extends Command
// removing the installer directory
if (is_dir('public/installer')) {
shell_exec('rm -rf public/installer');
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
shell_exec('rmdir /s/q public\\installer');
} else {
shell_exec('rm -rf public/installer');
}
}
// final information