check master or main

This commit is contained in:
Ibnu Maksum 2024-08-02 15:48:31 +07:00
parent face1dfa57
commit 82904b9302
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 4 additions and 1 deletions

View File

@ -121,6 +121,9 @@ switch ($action) {
$zip->extractTo($cache);
$zip->close();
$folder = $cache . DIRECTORY_SEPARATOR . $plugin . '-main' . DIRECTORY_SEPARATOR;
if(!file_exists($folder)) {
$folder = $cache . DIRECTORY_SEPARATOR . $plugin . '-master' . DIRECTORY_SEPARATOR;
}
$success = 0;
if (file_exists($folder . 'plugin')) {
File::copyFolder($folder . 'plugin' . DIRECTORY_SEPARATOR, $PLUGIN_PATH . DIRECTORY_SEPARATOR);

View File

@ -1,3 +1,3 @@
{
"version": "2024.8.1.3"
"version": "2024.8.2"
}