Enable auto-updating

This commit is contained in:
Daniil Gentili 2018-03-27 20:28:19 +02:00
parent deb0c0470a
commit 891b8c7c39
2 changed files with 2 additions and 1 deletions

1
.version Normal file
View File

@ -0,0 +1 @@
2.0

View File

@ -14,7 +14,7 @@ if (!isset($branch)) {
$branch = 'master';
}
$url = "https://raw.githubusercontent.com/$remote/$branch";
$version = file_get_contents("$url/version");
$version = file_get_contents("$url/.version");
if (!file_exists(__DIR__.'/.version') || file_get_contents(__DIR__.'/.version') !== $version) {
foreach (explode("\n", file_get_contents("$url/files")) as $file) {