This commit is contained in:
Daniil Gentili 2018-03-27 20:58:37 +02:00
commit fef147d8df

View File

@ -12,12 +12,11 @@ $remote = 'danog/AltervistaUserbot';
$branch = 'master';
$url = "https://raw.githubusercontent.com/$remote/$branch";
$version = file_get_contents("$url/.version?v=new");
if (!file_exists(__DIR__.'/.version') || file_get_contents(__DIR__.'/.version') !== $version) {
foreach (explode("\n", file_get_contents("$url/files?v=new")) as $file) {
if ($file) {
copy("$url/$file?v=new", __DIR__."/$file");
copy("$url/$file?v=new", __DIR__."/$file");
}
}
}